Skip to content

Commit 2925b54

Browse files
committed
Added .travis.yml
1 parent ac2b870 commit 2925b54

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.travic.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: go
2+
go:
3+
- 1.9
4+
# Don't email me the results of the test runs.
5+
notifications:
6+
email: false
7+
before_script:
8+
- go get github.com/golang/lint/golint # Linter
9+
10+
script:
11+
- test -z $(gofmt -s -l $GO_FILES) # Fail if a .go file hasn't been formatted with gofmt
12+
- go test -v -race ./... # Run all the tests with the race detector enabled
13+
- go vet ./... # go vet is the official Go static analyzer
14+
- golint -set_exit_status $(go list ./...) # one last linter

0 commit comments

Comments
 (0)