travis added
This commit is contained in:
parent
0c50cf53ba
commit
0a1f9a7128
10
.travis.yml
10
.travis.yml
@ -19,15 +19,5 @@ install: true
|
|||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
||||||
# Anything in before_script that returns a nonzero exit code will flunk the
|
|
||||||
# build and immediately stop. It's sorta like having set -e enabled in bash.
|
|
||||||
# Make sure golangci-lint is vendored.
|
|
||||||
before_script:
|
|
||||||
- go install -mod vendor github.com/golangci/golangci-lint/cmd/golangci-lint
|
|
||||||
|
|
||||||
# script always runs to completion (set +e). If we have linter issues AND a
|
|
||||||
# failing test, we want to see both. Configure golangci-lint with a
|
|
||||||
# .golangci.yml file at the top level of your repo.
|
|
||||||
script:
|
script:
|
||||||
- golangci-lint run # run a bunch of code checkers/linters in parallel
|
|
||||||
- go test -v -race ./... # Run all the tests with the race detector enabled
|
- go test -v -race ./... # Run all the tests with the race detector enabled
|
Loading…
Reference in New Issue
Block a user