1sudo: false 2language: go 3go: 4 - 1.8.x 5 - 1.9.x 6 - 1.10.x 7 - tip 8matrix: 9 allow_failures: 10 - go: tip 11 fast_finish: true 12script: 13 - if [ -n "$(go fmt ./...)" ]; then exit 1; fi 14 - ./test.sh 15 - ./benchmark.sh $TRAVIS_BRANCH https://github.com/$TRAVIS_REPO_SLUG.git 16before_install: 17 - go get github.com/axw/gocov/gocov 18 - go get github.com/mattn/goveralls 19 - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi 20branches: 21 only: [master] 22after_success: 23 - $HOME/gopath/bin/goveralls -service=travis-ci -coverprofile=coverage.out -repotoken $COVERALLS_TOKEN 24