File: .travis.yml

package info (click to toggle)
golang-raven-go 0.2.0%2Bds2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 228 kB
  • sloc: makefile: 3; sh: 3
file content (41 lines) | stat: -rw-r--r-- 976 bytes parent folder | download
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
sudo: false
language: go
go:
  - 1.7.x
  - 1.8.x
  - 1.9.x
  - 1.10.x
  - 1.11.x
  - tip

before_install:
  - go install -race std
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/tebeka/go2xunit
  - go get github.com/t-yuki/gocover-cobertura
  - go get -v ./...

script:
  - go test -v -race ./... | tee gotest.out
  - $GOPATH/bin/go2xunit -fail -input gotest.out -output xunit.xml
  - go test -v -coverprofile=coverage.txt -covermode count .
  - $GOPATH/bin/gocover-cobertura < coverage.txt > coverage.xml
    
after_script:
  - npm install -g @zeus-ci/cli
  - zeus upload -t "application/x-cobertura+xml" coverage.xml
  - zeus upload -t "application/x-xunit+xml" xunit.xml

matrix:
  allow_failures:
    - go: tip

notifications:
  webhooks:
    urls:
      - https://zeus.ci/hooks/cd949996-d30a-11e8-ba53-0a580a28042d/public/provider/travis/webhook
    on_success: always
    on_failure: always
    on_start: always
    on_cancel: always
    on_error: always