diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2019-04-26 19:48:33 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2019-04-26 19:48:33 +0100 |
commit | 9c3faeb0ee6c588bc4772bd186554796cc1e446e (patch) | |
tree | abed05985db9e1b6a51ff113067ed78396034ee7 | |
parent | 2937f0529615a6220418bc3bcdf18902ed8bb9a9 (diff) | |
download | swig-9c3faeb0ee6c588bc4772bd186554796cc1e446e.tar.gz |
Use gimme to install a version of Go to test. Travis already uses gimme
to pre-install a version of Go.
Switch some of the Go testing from travis to xenial.
-rw-r--r-- | .travis.yml | 13 | ||||
-rwxr-xr-x | Tools/travis-linux-install.sh | 3 |
2 files changed, 12 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 78d8883b5..61021b4e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,14 +31,19 @@ matrix: dist: trusty - compiler: gcc os: linux - env: SWIGLANG=go + env: SWIGLANG=go VER=1.3 sudo: required - dist: trusty + dist: xenial - compiler: gcc os: linux - env: SWIGLANG=go VER=1.5 + env: SWIGLANG=go VER=1.8 sudo: required - dist: trusty + dist: xenial + - compiler: gcc + os: linux + env: SWIGLANG=go VER=1.12 + sudo: required + dist: xenial - compiler: gcc os: linux env: SWIGLANG=guile diff --git a/Tools/travis-linux-install.sh b/Tools/travis-linux-install.sh index dc8526546..bfa7bf8eb 100755 --- a/Tools/travis-linux-install.sh +++ b/Tools/travis-linux-install.sh @@ -37,6 +37,9 @@ case "$SWIGLANG" in travis_retry sudo dpkg -i dmd_2.066.0-0_amd64.deb ;; "go") + if [[ "$VER" ]]; then + eval "$(gimme ${VER}.x)" + fi ;; "javascript") case "$ENGINE" in |