2015-05-05 23:54:13 -05:00
|
|
|
language: go
|
2015-07-18 02:37:22 -05:00
|
|
|
|
2016-12-04 12:22:22 -05:00
|
|
|
go:
|
2017-02-16 18:37:12 -05:00
|
|
|
- 1.8
|
2015-07-18 02:37:22 -05:00
|
|
|
- tip
|
|
|
|
|
2016-08-16 00:05:46 -05:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
|
|
|
fast_finish: true
|
|
|
|
|
2016-03-21 13:05:16 -05:00
|
|
|
before_install:
|
|
|
|
# Decrypts a script that installs an authenticated cookie
|
|
|
|
# for git to use when cloning from googlesource.com.
|
|
|
|
# Bypasses "bandwidth limit exceeded" errors.
|
|
|
|
# See github.com/golang/go/issues/12933
|
2016-03-22 10:08:29 -05:00
|
|
|
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then openssl aes-256-cbc -K $encrypted_3df18f9af81d_key -iv $encrypted_3df18f9af81d_iv -in dist/gitcookie.sh.enc -out dist/gitcookie.sh -d; fi
|
2016-02-17 18:08:25 -05:00
|
|
|
|
2015-09-10 22:05:52 -05:00
|
|
|
install:
|
2016-03-22 10:15:17 -05:00
|
|
|
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash dist/gitcookie.sh; fi
|
2016-02-17 18:08:25 -05:00
|
|
|
- go get -t ./...
|
2016-03-26 15:26:12 -05:00
|
|
|
- go get github.com/golang/lint/golint
|
|
|
|
- go get github.com/gordonklaus/ineffassign
|
2017-01-10 16:15:14 -05:00
|
|
|
- go get github.com/client9/misspell/cmd/misspell
|
2015-09-10 22:05:52 -05:00
|
|
|
|
|
|
|
script:
|
2016-03-28 11:52:48 -05:00
|
|
|
- diff <(echo -n) <(gofmt -s -d .)
|
2016-03-26 15:26:12 -05:00
|
|
|
- ineffassign .
|
2017-01-10 16:15:14 -05:00
|
|
|
- misspell -error .
|
2015-09-10 22:05:52 -05:00
|
|
|
- go vet ./...
|
2016-08-02 11:55:38 -05:00
|
|
|
- go test -race ./...
|
2016-03-26 15:26:12 -05:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- golint ./...
|