summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/dimchansky/utfbom/.travis.yml
blob: df88e37b262d53460e9dd5144c3ec3f6612b423f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
language: go

go:
  - 1.7
  - tip

# sudo=false makes the build run using a container
sudo: false

before_install:
  - go get github.com/mattn/goveralls
  - go get golang.org/x/tools/cmd/cover
  - go get golang.org/x/tools/cmd/goimports
  - go get github.com/golang/lint/golint
script:
  - gofiles=$(find ./ -name '*.go') && [ -z "$gofiles" ] || unformatted=$(goimports -l $gofiles) && [ -z "$unformatted" ] || (echo >&2 "Go files must be formatted with gofmt. Following files has problem:\n $unformatted" && false)
  - golint ./... # This won't break the build, just show warnings
  - $HOME/gopath/bin/goveralls -service=travis-ci