Exclude consullocker packge from tests on Go 1.8

This commit is contained in:
Marius 2018-05-13 14:33:05 +02:00 committed by GitHub
parent 58ecb9f4e4
commit 5b37614190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@ packages=$(find ./ -maxdepth 2 -name '*.go' -printf '%h\n' | sort | uniq)
goversion=$(go version) goversion=$(go version)
if [[ "$goversion" == *"go1.5"* ]] || if [[ "$goversion" == *"go1.5"* ]] ||
[[ "$goversion" == *"go1.6"* ]] || [[ "$goversion" == *"go1.6"* ]] ||
[[ "$goversion" == *"go1.7"* ]]; then [[ "$goversion" == *"go1.7"* ]] ||
[[ "$goversion" == *"go1.8"* ]]; then
echo "Skipping tests requiring Consul which is not supported on $goversion" echo "Skipping tests requiring Consul which is not supported on $goversion"