From 66a7829eeef94b9a04fdf3c36ed301e7d1e536fc Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sun, 18 Dec 2016 19:25:27 +0100 Subject: [PATCH] jenkins: Also try build with old Go version, if available --- jenkins/build-linux.bash | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/jenkins/build-linux.bash b/jenkins/build-linux.bash index 8a5373caf..3a808ce9d 100755 --- a/jenkins/build-linux.bash +++ b/jenkins/build-linux.bash @@ -55,3 +55,16 @@ go run build.go -goarch armhf snap go run build.go -goarch arm64 snap mv *.snap "$WORKSPACE" + +if [[ -d /usr/local/oldgo ]]; then + echo + echo Building with minimum supported Go version + export GOROOT=/usr/local/oldgo + export PATH="$GOROOT/bin:$PATH" + go version + echo + + git clean -fxd + rm -rf "$GOPATH/pkg" + go run build.go install all # only compile, don't run lints and stuff +fi