forked from Vonage/gosrvlib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml.off
50 lines (39 loc) · 887 Bytes
/
.travis.yml.off
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
42
43
44
45
46
47
48
49
50
language: go
dist: bionic
sudo: true
branches:
only:
- main
go:
- '1.23'
services:
- docker
before_install:
- sudo apt-get update || true
- if [ -n "$GH_USER" ]; then git config --global github.user ${GH_USER}; fi;
- if [ -n "$GH_TOKEN" ]; then git config --global github.token ${GH_TOKEN}; fi;
- go get github.com/mattn/goveralls
addons:
apt:
packages:
- devscripts
- fakeroot
- debhelper
- pkg-config
- alien
- rpm
- dh-make
- dh-golang
- upx-ucl
- python
- python-pip
install:
- sudo pip install --upgrade pip
- pip install --upgrade check-jsonschema
script:
- echo "$TRAVIS_BUILD_NUMBER" > RELEASE
- make mod deps qa example
after_failure:
- cat ./target/test/report.xml
after_success:
- $HOME/gopath/bin/goveralls -covermode=count -coverprofile=target/report/coverage.out -service=travis-ci