Debian Codegraph @

.travis.yml

raw symbols SCIP
1 # This is a weird way of telling Travis to use the fast container-based test
2 # runner instead of the slow VM-based runner.
3 sudo: false
4
5 language: go
6
7 # You don't need to test on very old version of the Go compiler. It's the user's
8 # responsibility to keep their compilers up to date.
9 go:
10 - 1.18
11
12 # Only clone the most recent commit.
13 git:
14 depth: 1
15
16 # Skip the install step. Don't `go get` dependencies. Only build with the code
17 # in vendor/
18 install: true
19
20 # Don't email me the results of the test runs.
21 notifications:
22 email: false
23
24 before_script:
25 - go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
26
27 # script always runs to completion (set +e). If we have linter issues AND a
28 # failing test, we want to see both. Configure golangci-lint with a
29 # .golangci.yml file at the top level of your repo.
30 script:
31 - golangci-lint run # run a bunch of code checkers/linters in parallel
32 - go test -v -race ./... # Run all the tests with the race detector enabled