diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-07-13 18:03:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-13 18:03:23 +0300 |
commit | ba41840ebc4a37eb81a9e7d398e21ff7327c4476 (patch) | |
tree | 9bf55b757a2c98aca468593c3722e34e7494e713 | |
parent | 08426a26d781019a96b713364cfb0679731fee57 (diff) | |
parent | ecc6356e9de6c89eeb44f145c3b831f25ad5796f (diff) |
Merge pull request #570 from docwhat/pr/docker-known-issues
test-in-docker: show known issues
-rwxr-xr-x | test-in-docker | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test-in-docker b/test-in-docker index c1aafcd9..3c7255ec 100755 --- a/test-in-docker +++ b/test-in-docker @@ -23,6 +23,14 @@ typeset -a frameworks frameworks=( docker/*/Dockerfile(N.on:h:t) ) frameworks=${(@)frameworks:#base-*} +# Known Issues +typeset -A known_issues +known_issues["4.3.11-antigen"]="Antigen commands that need git won't work; it needs a newer version of git." +known_issues["4.3.11-zim"]="BROKEN: Zim wants ZSH 5.2 or newer." +known_issues["5.0.3-zim"]="DEPRECATED: Zim wants ZSH 5.2 or newer." +known_issues["5.1.1-zim"]="DEPRECATED: Zim wants ZSH 5.2 or newer." +known_issues["4.3.11-zulu"]="Zulu doesn't work; it needs a newer version of git." + err() { print -P "%F{red}Error:%f $*" @@ -45,11 +53,25 @@ resolve_version() { fi } +check_for_known_issues() { + local version="$1" + local framework="$2" + local name="${version}-${framework}" + + if (( ${+known_issues["$name"]} )); then + echo + print -P "%F{red}Known Issue: %F{yellow}${known_issues["$name"]}%f" + echo + fi +} + build_and_run() { local version="$1" local framework="$2" local name="${version}-${framework}" + check_for_known_issues "$version" "$framework" + print -P "%F{green}Preparing containers...%f" echo -n "p9k:base-${version}: " |