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

This commit is contained in:
Jakob Borg 2016-12-18 19:25:27 +01:00
parent 9c67bd2550
commit 66a7829eee
1 changed files with 13 additions and 0 deletions

View File

@ -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