-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (39 loc) · 1.21 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
language: go
sudo: required
dist: xenial
addons:
apt:
packages:
- rabbitmq-server
services:
- rabbitmq
matrix:
allow_failures:
- go: tip
fast_finish: true
include:
- go: 1.11.x
env: GO111MODULE=on
- go: 1.12.x
env: GO111MODULE=on
- go: 1.13.x
- go: tip
before_install:
- if [[ "${GO111MODULE}" = "on" ]]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go"; fi
- go mod download
- if [[ "${GO111MODULE}" = "on" ]]; then export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"; fi
# Install lint / code coverage / coveralls tooling
- travis_retry go get -u golang.org/x/net/http2
- travis_retry go get -u golang.org/x/tools/cmd/cover
- travis_retry go get -u github.com/modocache/gover
- travis_retry go get -u github.com/mattn/goveralls
- travis_retry go get -u golang.org/x/lint/golint
# - docker run -p 127.0.0.1:5672:5672 -p 127.0.0.1:15671:15671 -p 127.0.0.1:15672:15672 -d rabbitmq:3.7-management-alpine
script:
- make
- make coverage
after_script:
# Merge all coverage reports located in subdirectories and put them under: gover.coverprofile
- gover
# Send code coverage report to coveralls.io
- goveralls -service=travis-ci -coverprofile=gover.coverprofile