-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (39 loc) · 820 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
36
37
38
39
40
41
42
43
44
45
language: go
sudo: required
os:
- linux
- osx
go: 1.12.x
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
services:
- docker
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- xvfb
- gnome-keyring
- libsecret-1-dev
- python-gnomekeyring
before_script:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
dbus-launch /usr/bin/python -c \
"import gnomekeyring;gnomekeyring.create_sync('login', '');"
fi
script:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
chmod +x ./script/cibuild
xvfb-run ./script/cibuild
bash <(curl -s https://codecov.io/bash)
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
env GO111MODULE=on make test
bash <(curl -s https://codecov.io/bash)
fi