Do not test for consul on Go 1.7

This commit is contained in:
Marius 2017-11-21 13:18:47 +01:00
parent 49e6f02190
commit f347495e55
1 changed files with 3 additions and 2 deletions

View File

@ -5,11 +5,12 @@ set -e
# Find all packages containing Go source code inside the current directory
packages=$(find ./ -maxdepth 2 -name '*.go' -printf '%h\n' | sort | uniq)
# The consul package only supports Go1.7+ and therefore we will only run the
# The consul package only supports Go1.8+ and therefore we will only run the
# corresponding tests on these versions.
goversion=$(go version)
if [[ "$goversion" == *"go1.5"* ]] ||
[[ "$goversion" == *"go1.6"* ]]; then
[[ "$goversion" == *"go1.6"* ]] ||
[[ "$goversion" == *"go1.7"* ]]; then
echo "Skipping tests requiring Consul which is not supported on $goversion"