Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
language: go

go:
- 1.4
# Done as part of https://github.com/travis-ci/travis-ci/issues/9247
- "1.10"

sudo: false

Expand All @@ -18,7 +19,7 @@ before_install:
- curl -o gimme -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
- chmod u+x gimme
- unset GOROOT GOTOOLDIR
- eval "$(./gimme 1.4)"
- eval "$(./gimme 1.10)"
- go version
- go env

Expand Down
3 changes: 2 additions & 1 deletion script/build
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ build() {

# Check the go version
EQ="="
regex="(go[0-1].[0-4])"
# If we are golang <= 1.4, ' ' for EQ ... else '='
regex="(go[0-1].[0-4](?![0-9]))"
if [[ `go version` =~ $regex ]]; then
EQ=" "
fi
Expand Down