Skip to content

Commit

Permalink
Add Travis CI integration
Browse files Browse the repository at this point in the history
A simple setup to test on latest release
and one previous version of Go.

Also, run fmt and golint before testing.
  • Loading branch information
x1ddos committed Dec 19, 2018
1 parent 18b69d7 commit 84b339f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
dist: xenial
git:
depth: 3
language: go
go:
- "1.x"
- "1.10.x"
before_script:
- go get golang.org/x/lint/golint
script:
- gofmt -d -e -l -s .
- golint -set_exit_status ./...
- go test -v ./...

0 comments on commit 84b339f

Please sign in to comment.