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

Commit 72ec700

Browse files
author
Dongsu Park
authored
Merge pull request #1617 from dongsupark/dongsu/travis-build-tip
travis: add tip to the compiler and update build-env.
2 parents fdf1dd9 + 77f8060 commit 72ec700

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ matrix:
44
- go: 1.5.4
55
env: GO15VENDOREXPERIMENT=1
66
- go: 1.6.2
7+
- go: tip
8+
allow_failures:
9+
- go: tip
710

811
script:
912
- ./test

build-env

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
version=$(go version)
2-
regex="go([0-9]+).([0-9]+)."
3-
if [[ $version =~ $regex ]]; then
2+
regex_release="go([0-9]+).([0-9]+)."
3+
regex_devel="devel\s+\+([a-f0-9]+)\s+"
4+
if [[ $version =~ $regex_release ]]; then
45
if [ ${BASH_REMATCH[1]} -eq "1" -a ${BASH_REMATCH[2]} -eq "5" ]; then
56
export GO${BASH_REMATCH[1]}${BASH_REMATCH[2]}VENDOREXPERIMENT=1
67
fi
78
else
8-
echo "could not determine Go version"
9-
exit 1
9+
if ! [[ $version =~ $regex_devel ]]; then
10+
echo "could not determine Go version"
11+
echo "version = \"$version\""
12+
exit 1
13+
fi
1014
fi
1115

1216
export GOBIN=${PWD}/bin

0 commit comments

Comments
 (0)