build: some small improvements; bump to go1.10

- bump to go 1.10
- Add a linker tag with the build version
- Remove fastbuild, go builds are cached now
- Use better ginkgo suite names
This commit is contained in:
Casey Callendrello
2018-04-12 14:01:10 +02:00
parent e4f13535ab
commit aade7b93ee
27 changed files with 35 additions and 46 deletions

View File

@ -1,8 +1,9 @@
#!/usr/bin/env bash
set -e
cd $(dirname "$0")
if [ "$(uname)" == "Darwin" ]; then
export GOOS=linux
export GOOS="${GOOS:-linux}"
fi
ORG_PATH="github.com/containernetworking"
@ -13,7 +14,6 @@ if [ ! -h gopath/src/${REPO_PATH} ]; then
ln -s ../../../.. gopath/src/${REPO_PATH} || exit 255
fi
export GO15VENDOREXPERIMENT=1
export GOPATH=${PWD}/gopath
export GO="${GO:-go}"
@ -25,12 +25,6 @@ for d in $PLUGINS; do
if [ -d "$d" ]; then
plugin="$(basename "$d")"
echo " $plugin"
# use go install so we don't duplicate work
if [ -n "$FASTBUILD" ]
then
GOBIN=${PWD}/bin $GO install -pkgdir $GOPATH/pkg "$@" $REPO_PATH/$d
else
$GO build -o "${PWD}/bin/$plugin" -pkgdir "$GOPATH/pkg" "$@" "$REPO_PATH/$d"
fi
$GO build -o "${PWD}/bin/$plugin" "$@" "$REPO_PATH"/$d
fi
done