Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1617 from dongsupark/dongsu/travis-build-tip
Browse files Browse the repository at this point in the history
travis: add tip to the compiler and update build-env.
  • Loading branch information
Dongsu Park authored Jun 27, 2016
2 parents fdf1dd9 + 77f8060 commit 72ec700
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ matrix:
- go: 1.5.4
env: GO15VENDOREXPERIMENT=1
- go: 1.6.2
- go: tip
allow_failures:
- go: tip

script:
- ./test
Expand Down
12 changes: 8 additions & 4 deletions build-env
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
version=$(go version)
regex="go([0-9]+).([0-9]+)."
if [[ $version =~ $regex ]]; then
regex_release="go([0-9]+).([0-9]+)."
regex_devel="devel\s+\+([a-f0-9]+)\s+"
if [[ $version =~ $regex_release ]]; then
if [ ${BASH_REMATCH[1]} -eq "1" -a ${BASH_REMATCH[2]} -eq "5" ]; then
export GO${BASH_REMATCH[1]}${BASH_REMATCH[2]}VENDOREXPERIMENT=1
fi
else
echo "could not determine Go version"
exit 1
if ! [[ $version =~ $regex_devel ]]; then
echo "could not determine Go version"
echo "version = \"$version\""
exit 1
fi
fi

export GOBIN=${PWD}/bin
Expand Down

0 comments on commit 72ec700

Please sign in to comment.