-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
27 lines (20 loc) · 869 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
language: go
go:
- 1.9.2
- master
before_install:
- go get -t ./...
gobuild_args: -ldflags "-s -w"
install: true
notifications:
email: false
#before_script:
# - GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) # All the .go files, excluding vendor/
# - go get github.com/moldabekov/spinner # Linter
# - go get honnef.co/go/tools/cmd/megacheck # Badass static analyzer/linter
#script:
# - test -z $(gofmt -s -l $GO_FILES) # Fail if a .go file hasn't been formatted with gofmt
# - go vet ./... # go vet is the official Go static analyzer
# - megacheck ./... # "go vet on steroids" + linter
# - gocyclo -over 19 $GO_FILES # forbid code with huge functions
#- golint -set_exit_status $(go list ./...) # one last linter