2015-05-06 06:54:13 +02:00
|
|
|
language: go
|
2015-07-18 09:37:22 +02:00
|
|
|
|
|
|
|
go:
|
2016-08-02 18:55:38 +02:00
|
|
|
- 1.6.3
|
2016-08-16 06:57:18 +02:00
|
|
|
- 1.7
|
2015-07-18 09:37:22 +02:00
|
|
|
- tip
|
|
|
|
|
2016-03-21 19:05:16 +01: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 16:08:29 +01: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-18 00:08:25 +01:00
|
|
|
|
2015-09-11 05:05:52 +02:00
|
|
|
install:
|
2016-03-22 16:15:17 +01:00
|
|
|
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash dist/gitcookie.sh; fi
|
2016-02-18 00:08:25 +01:00
|
|
|
- go get -t ./...
|
2016-03-26 21:26:12 +01:00
|
|
|
- go get github.com/golang/lint/golint
|
|
|
|
- go get github.com/gordonklaus/ineffassign
|
2015-09-11 05:05:52 +02:00
|
|
|
|
|
|
|
script:
|
2016-03-28 18:52:48 +02:00
|
|
|
- diff <(echo -n) <(gofmt -s -d .)
|
2016-03-26 21:26:12 +01:00
|
|
|
- ineffassign .
|
2015-09-11 05:05:52 +02:00
|
|
|
- go vet ./...
|
2016-08-02 18:55:38 +02:00
|
|
|
- go test -race ./...
|
2016-03-26 21:26:12 +01:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- golint ./...
|