2015-05-06 07:54:13 +03:00
|
|
|
language: go
|
2015-07-18 10:37:22 +03:00
|
|
|
|
2017-09-12 04:49:02 +03:00
|
|
|
addons:
|
|
|
|
hosts:
|
|
|
|
- quic.clemente.io
|
|
|
|
|
2016-12-04 20:22:22 +03:00
|
|
|
go:
|
2017-09-16 18:48:27 +03:00
|
|
|
- 1.x
|
2015-07-18 10:37:22 +03:00
|
|
|
- tip
|
|
|
|
|
2016-08-16 08:05:46 +03:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
|
|
|
fast_finish: true
|
|
|
|
|
2016-03-21 21:05:16 +03: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 18:08:29 +03: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 02:08:25 +03:00
|
|
|
|
2015-09-11 06:05:52 +03:00
|
|
|
install:
|
2016-03-22 18:15:17 +03:00
|
|
|
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash dist/gitcookie.sh; fi
|
2016-02-18 02:08:25 +03:00
|
|
|
- go get -t ./...
|
2016-03-26 23:26:12 +03:00
|
|
|
- go get github.com/golang/lint/golint
|
2017-05-27 22:30:11 +03:00
|
|
|
- go get github.com/FiloSottile/vendorcheck
|
2017-10-19 20:02:56 +03:00
|
|
|
# Install gometalinter
|
2017-05-27 22:30:11 +03:00
|
|
|
- go get github.com/alecthomas/gometalinter
|
2015-09-11 06:05:52 +03:00
|
|
|
|
|
|
|
script:
|
2017-10-19 20:02:56 +03:00
|
|
|
- gometalinter --install
|
2017-05-27 22:30:11 +03:00
|
|
|
- gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --tests --vendor ./...
|
|
|
|
- vendorcheck ./...
|
2017-08-25 06:02:47 +03:00
|
|
|
- go test -race ./...
|
2016-03-26 23:26:12 +03:00
|
|
|
|
|
|
|
after_script:
|
2017-08-25 06:02:47 +03:00
|
|
|
- golint ./...
|