Skip to content

Commit 84b339f

Browse files
committed
Add Travis CI integration
A simple setup to test on latest release and one previous version of Go. Also, run fmt and golint before testing.
1 parent 18b69d7 commit 84b339f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.travis.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
dist: xenial
2+
git:
3+
depth: 3
4+
language: go
5+
go:
6+
- "1.x"
7+
- "1.10.x"
8+
before_script:
9+
- go get golang.org/x/lint/golint
10+
script:
11+
- gofmt -d -e -l -s .
12+
- golint -set_exit_status ./...
13+
- go test -v ./...

0 commit comments

Comments
 (0)