etcd3locker: Do not run tests on Go < 1.11
This commit is contained in:
parent
0dd8efd606
commit
774cd3800d
|
@ -39,12 +39,14 @@ install_etcd_pkgs() {
|
||||||
export PATH="$PATH:/tmp/etcd-v$ETCD_VERSION-linux-amd64"
|
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.
|
# we will only run the corresponding tests on these versions.
|
||||||
if [[ "$goversion" == *"go1.5"* ]] ||
|
if [[ "$goversion" == *"go1.5"* ]] ||
|
||||||
[[ "$goversion" == *"go1.6"* ]] ||
|
[[ "$goversion" == *"go1.6"* ]] ||
|
||||||
[[ "$goversion" == *"go1.7"* ]] ||
|
[[ "$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"
|
echo "Skipping tests requiring etcd3locker, which is not supported on $goversion"
|
||||||
packages=$(echo "$packages" | sed '/etcd3locker/d')
|
packages=$(echo "$packages" | sed '/etcd3locker/d')
|
||||||
else
|
else
|
||||||
|
|
|
@ -7,6 +7,7 @@ go:
|
||||||
- 1.9
|
- 1.9
|
||||||
- "1.10"
|
- "1.10"
|
||||||
- 1.11
|
- 1.11
|
||||||
|
- 1.12
|
||||||
sudo: required
|
sudo: required
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
|
Loading…
Reference in New Issue