This repository has been archived by the owner on May 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
60 lines (50 loc) · 1.9 KB
/
.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
language: go
go:
- master
- "1.11"
install: true
matrix:
allow_failures:
- go: master
fast_finish: true
notifications:
email: true
before_script:
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) # All the .go files, excluding vendor/
- go get golang.org/x/lint/golint # Linter
- go get honnef.co/go/tools/cmd/megacheck # Badass static analyzer/linter
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
- go get github.com/go-playground/overalls
script:
# Run all the tests with the race detector enabled
- overalls -project=github.com/qbeon/webwire-go -covermode=atomic -debug -- -race -v -coverpkg=./...
- $HOME/gopath/bin/goveralls -coverprofile=overalls.coverprofile -service=travis-ci -repotoken=$COVERALLS_TOKEN
# go vet is the official Go static analyzer
- go vet ./...
# "go vet on steroids" + linter
- megacheck ./...
# one last linter
- golint -set_exit_status $(go list ./...)
after_success:
- "curl -s -X POST
-H \"Content-Type: application/json\"
-H \"Accept: application/json\"
-H \"Travis-API-Version: 3\"
-H \"Authorization: token $TRAVIS_API_TOKEN\"
-d '{\"request\": {\"branch\":\"master\"}}'
https://api.travis-ci.org/repo/qbeon%2Fwebwire-go-gorilla/requests"
- "curl -s -X POST
-H \"Content-Type: application/json\"
-H \"Accept: application/json\"
-H \"Travis-API-Version: 3\"
-H \"Authorization: token $TRAVIS_API_TOKEN\"
-d '{\"request\": {\"branch\":\"master\"}}'
https://api.travis-ci.org/repo/qbeon%2Fwebwire-go-fasthttp/requests"
- "curl -s -X POST
-H \"Content-Type: application/json\"
-H \"Accept: application/json\"
-H \"Travis-API-Version: 3\"
-H \"Authorization: token $TRAVIS_API_TOKEN\"
-d '{\"request\": {\"branch\":\"master\"}}'
https://api.travis-ci.org/repo/qbeon%2Fwebwire-go-examples/requests"