Browse Source

jenkins: Also try build with old Go version, if available

Jakob Borg 9 years ago
parent
commit
66a7829eee
1 changed files with 13 additions and 0 deletions
  1. 13 0
      jenkins/build-linux.bash

+ 13 - 0
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