forked from crgimenes/grupo-estudos-golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (22 loc) · 981 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
dist: trusty
sudo: false
language: go
go:
- "1.11"
os:
- linux
install: true
env:
global:
- CC_TEST_REPORTER_ID=0fe81aee4dd34d8b13d5596f81b649114ff3a1624f6602edce1c70b07742b21b
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
before_script:
- go get -t $(go list ./... |grep -v vendor|grep -v botao_e_LED|grep -v go_com_c|grep -v cpp|grep -v pwm|grep -v ras)
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- go get github.com/axw/gocov/gocov
- chmod 700 ./cover.sh
script:
- go test $(go list ./... |grep -v vendor|grep -v botao_e_LED|grep -v go_com_c|grep -v cpp|grep -v pwm|grep -v ras)
- ./cover.sh
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi