Update travis for crossplatform

This commit is contained in:
Wim 2017-07-16 17:15:00 +02:00
parent 20a7ef33f1
commit 835a1ac3a6

View File

@ -3,8 +3,15 @@ go:
- 1.7.x - 1.7.x
- 1.8.x - 1.8.x
- tip - tip
# we have everything vendored
install: true install: true
env:
- GOOS=linux GOARCH=amd64
- GOOS=windows GOARCH=amd64
- GOOS=linux GOARCH=arm
matrix: matrix:
# It's ok if our code fails on unstable development versions of Go. # It's ok if our code fails on unstable development versions of Go.
allow_failures: allow_failures:
@ -25,7 +32,6 @@ before_script:
# Anything in before_script: that returns a nonzero exit code will # Anything in before_script: that returns a nonzero exit code will
# flunk the build and immediately stop. It's sorta like having # flunk the build and immediately stop. It's sorta like having
# set -e enabled in bash. # set -e enabled in bash.
script:
script: script:
- test -z $(gofmt -s -l $GO_FILES) # Fail if a .go file hasn't been formatted with gofmt - test -z $(gofmt -s -l $GO_FILES) # Fail if a .go file hasn't been formatted with gofmt
#- go test -v -race $PKGS # Run all the tests with the race detector enabled #- go test -v -race $PKGS # Run all the tests with the race detector enabled