Skip to content

Commit

Permalink
Added .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrst88 committed May 10, 2018
1 parent ac2b870 commit 2925b54
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .travic.yml
@@ -0,0 +1,14 @@
language: go
go:
- 1.9
# Don't email me the results of the test runs.
notifications:
email: false
before_script:
- go get github.com/golang/lint/golint # Linter

script:
- test -z $(gofmt -s -l $GO_FILES) # Fail if a .go file hasn't been formatted with gofmt
- go test -v -race ./... # Run all the tests with the race detector enabled
- go vet ./... # go vet is the official Go static analyzer
- golint -set_exit_status $(go list ./...) # one last linter

0 comments on commit 2925b54

Please sign in to comment.