Skip to content

Commit 838657f

Browse files
rbeuque74loopfz
authored andcommitted
Adding travis build report (#18)
Signed-off-by: Romain Beuque <[email protected]>
1 parent 9a85f90 commit 838657f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+

0 commit comments

Comments
 (0)