From 774cd3800dd8438f4068826b915ee8d021dbcf91 Mon Sep 17 00:00:00 2001 From: Marius Date: Mon, 20 May 2019 22:38:53 +0200 Subject: [PATCH] etcd3locker: Do not run tests on Go < 1.11 --- .scripts/test_all.sh | 6 ++++-- .travis.yml | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.scripts/test_all.sh b/.scripts/test_all.sh index 1837c7f..bf5bb7f 100755 --- a/.scripts/test_all.sh +++ b/.scripts/test_all.sh @@ -39,12 +39,14 @@ install_etcd_pkgs() { export PATH="$PATH:/tmp/etcd-v$ETCD_VERSION-linux-amd64" } -# The etcd 3.3.x package only supports Go1.9+ and therefore +# The etcd 3.3.x package only supports Go1.11+ and therefore # we will only run the corresponding tests on these versions. if [[ "$goversion" == *"go1.5"* ]] || [[ "$goversion" == *"go1.6"* ]] || [[ "$goversion" == *"go1.7"* ]] || - [[ "$goversion" == *"go1.8"* ]]; then + [[ "$goversion" == *"go1.8"* ]] || + [[ "$goversion" == *"go1.9"* ]] || + [[ "$goversion" == *"go1.10"* ]]; then echo "Skipping tests requiring etcd3locker, which is not supported on $goversion" packages=$(echo "$packages" | sed '/etcd3locker/d') else diff --git a/.travis.yml b/.travis.yml index 96892ad..e18d1aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ go: - 1.9 - "1.10" - 1.11 +- 1.12 sudo: required addons: apt: