File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ language : go
2
+ go :
3
+ - 1.11.x
4
+ - 1.12.x
5
+
6
+ # Only clone the most recent commit.
7
+ git :
8
+ depth : 1
9
+
10
+ # Don't email me the results of the test runs.
11
+ notifications :
12
+ email : false
13
+
14
+ # Anything in before_script that returns a nonzero exit code will flunk the
15
+ # build and immediately stop. It's sorta like having set -e enabled in bash.
16
+ # Make sure golangci-lint is vendored.
17
+ before_script :
18
+ - go get -v -u github.com/golangci/golangci-lint/cmd/golangci-lint
19
+ - go install github.com/golangci/golangci-lint/cmd/golangci-lint
20
+
21
+ # script always runs to completion (set +e). If we have linter issues AND a
22
+ # failing test, we want to see both. Configure golangci-lint with a
23
+ # .golangci.yml file at the top level of your repo.
24
+ script :
25
+ - golangci-lint run # run a bunch of code checkers/linters in parallel
26
+ - go test -v -race ./... # Run all the tests with the race detector enabled
27
+
You can’t perform that action at this time.
0 commit comments