etcd3locker: Do not run tests on Go < 1.11

This commit is contained in:
Marius 2019-05-20 22:38:53 +02:00
parent 0dd8efd606
commit 774cd3800d
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -7,6 +7,7 @@ go:
- 1.9
- "1.10"
- 1.11
- 1.12
sudo: required
addons:
apt: