-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
35 lines (31 loc) · 1004 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
28
29
30
31
dist: trusty
sudo: false
matrix:
include:
- language: go
go:
- 1.12.x
env:
- GOMAXPROCS=9
os:
- linux
install:
- go get github.com/axw/gocov/gocov
- go install github.com/axw/gocov/gocov
- go get github.com/prometheus/client_golang/prometheus
- go get github.com/prometheus/client_golang/prometheus/promauto
- go get github.com/prometheus/client_golang/prometheus/promhttp
- go get -u github.com/gorilla/mux
- go get gopkg.in/yaml.v2
before_install:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
- chmod +x ./cc-test-reporter
- "./cc-test-reporter before-build"
script:
- go test -race -v -coverprofile=c.out ./... && echo -e "\n\n\n SUCCESS \n\n"
- gocov test ./... > cc.out
after_success:
- cp c.out coverage.txt
- bash <(curl -s https://codecov.io/bash)
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"