-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
31 lines (25 loc) · 975 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
language: go
env:
global:
- CC_TEST_REPORTER_ID=0785bba858e3306249391d2bfed7d0893eee93420195ad1398d5e9231c0ff680
go:
- 1.13.x
install:
- go version
- go get github.com/lugu/qiloop/...
- go generate github.com/lugu/qiloop/bus/...
- go generate github.com/lugu/qiloop/meta/...
- go generate github.com/lugu/qiloop/type/...
- go generate github.com/lugu/qiloop/examples/...
before_script:
- 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 vet -composites=false ./...
- go build github.com/lugu/qiloop/...
- go test github.com/lugu/qiloop/... -race -coverprofile=coverage.txt -covermode=atomic -timeout 2m
after_success:
- bash <(curl -s https://codecov.io/bash)
- mv coverage.txt c.out
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT