forked from hyeoncheon/goul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (28 loc) · 948 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
32
33
34
35
language: go
go:
- 1.8.x
env:
global:
- CC_TEST_REPORTER_ID=9311a4b76692580fa889c7d2476a621b41f7ffb5554b8dabc5e818e572d0602c
before_script:
- go get github.com/mattn/goveralls
- go get github.com/AlekSi/gocoverutil
- 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
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libpcap-dev
- env
go_import_path: github.com/hyeoncheon/goul
script:
- go build -o goul -ldflags "-X main.buildNumber=`git rev-parse --short HEAD`" ./cmd/goul
- ls -l goul
- ./goul -v
- ./supports/test-gocover.sh
- go test ./... -v
- goveralls -v -service=travis-ci
# cover.out was generated by test-gocover.sh, github.com/AlekSi/gocoverutil
after_script:
- cp cover.out c.out
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT