caddy/.travis.yml

38 lines
1016 B
YAML
Raw Normal View History

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