Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
travis: Fix golang version
Browse files Browse the repository at this point in the history
Install the golang version specified in the versions.yaml
before installing the agent

fixes #633

Signed-off-by: Julio Montes <[email protected]>
  • Loading branch information
Julio Montes committed Aug 16, 2019
1 parent a78e8cf commit b1a4284
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .ci/install_go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ source "${cidir}/lib.sh"

clone_tests_repo

new_goroot=/usr/local/go

pushd "${tests_repo_dir}"
.ci/install_go.sh -p -f
# Force overwrite the current version of golang
[ -z "${GOROOT}" ] || rm -rf "${GOROOT}"
.ci/install_go.sh -p -f -d "$(dirname ${new_goroot})"
[ -z "${GOROOT}" ] || sudo ln -sf "${new_goroot}" "${GOROOT}"
go version
popd
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ env:
- target_branch=$TRAVIS_BRANCH

before_script:
- ".ci/install_go.sh"
- ".ci/static-checks.sh"

before_install:
- sudo apt-get update -qq
- sudo apt-get install -y -qq automake
- sudo apt-get install -y moreutils
- ".ci/install_go.sh"

install:
- cd ${TRAVIS_BUILD_DIR} && make
Expand Down

0 comments on commit b1a4284

Please sign in to comment.