-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (33 loc) · 1.18 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
language: go
sudo: false
go:
- "1.10.x"
- "1.11rc2"
jobs:
allow_failures:
- go: "1.11rc2"
env:
- DEP_VERSION="0.5.0" SUPERVISOR_VERSION="0.5"
before_install:
# Download the binary to bin folder in $GOPATH
- curl -L -s --fail https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
# Make the binary executable
- chmod +x $GOPATH/bin/dep
install:
- dep ensure -v
- go get -v -u github.com/alecthomas/gometalinter/... golang.org/x/tools/cmd/cover github.com/mattn/goveralls
# -t is required because some tests have dependency that are not imported from project
#- go get -v -t ./...
- gometalinter --install
# we need supervisord installed for tests
- curl -L -s --fail https://github.com/ochinchina/supervisord/releases/download/v${SUPERVISOR_VERSION}/supervisord_${SUPERVISOR_VERSION}_linux_amd64 -o $GOPATH/bin/supervisord
- chmod +x $GOPATH/bin/supervisord
script:
- make test-coverage
- make
- make gometalinter
after_script:
- goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
after_success:
- rm -v jagozzi
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash