Add Travis CI including a check for gofmt -s
Attempt building with both go1 and the currrent go release, to ensure compatibility. Signed-off-by: Robert Breker <robert.breker@citrix.com>
This commit is contained in:
parent
52fa3fe1b5
commit
116eff17bc
7
.travis.yml
Normal file
7
.travis.yml
Normal file
@ -0,0 +1,7 @@
|
||||
language: go
|
||||
go:
|
||||
# Test with the first and the latest go release - to ensure compatibility
|
||||
- 1
|
||||
- release
|
||||
script:
|
||||
- gofmtresult=$(gofmt -s -l .); if [[ -n $gofmtresult ]]; then echo -e "Please run \"gofmt -s -w .\" before committing for the below:\n$gofmtresult"; false; fi
|
Loading…
Reference in New Issue
Block a user