github.com/waldiirawan/apm-agent-go/v2@v2.2.2/scripts/jenkins/setenv.sh (about) 1 #!/usr/bin/env bash 2 set -euxo pipefail 3 4 # Install Go using the same travis approach 5 echo "Installing ${GO_VERSION} with gimme." 6 eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=${GO_VERSION} bash)" 7 8 # Install tools used only in CI using a local go.mod file. 9 GO_INSTALL_FLAGS="-modfile=$PWD/scripts/jenkins/jenkins.go.mod" 10 11 go install $GO_INSTALL_FLAGS -v github.com/jstemmer/go-junit-report 12 go install $GO_INSTALL_FLAGS -v github.com/t-yuki/gocover-cobertura