-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy path.travis.yml
60 lines (48 loc) · 1.13 KB
/
.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
dist: xenial
language: go
os: linux
services:
- mysql
go:
- 1.13.x
- 1.14.x
# - TODO master
jobs:
allow_failures:
- go: master
cache:
directories:
- /home/travis/.cache/go-build
# - /home/travis/gopath/pkg
before_cache:
- go clean -testcache
# - go clean -cache
env:
fast_finish: true
install:
# ensure that vendor/ is in sync with code and Gopkg.toml/lock
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- dep check
before_script:
# ensure that files are not changed
- make init
- make format
- git status
- git diff --exit-code
script:
- make test-cover
- make test-crosscover
- make test-race
- make check
after_success:
- curl https://codecov.io/bash > codecov
- chmod +x codecov
- ./codecov -f cover.out -F cover -X fix
- ./codecov -f crosscover.out -F crosscover -X fix
notifications:
email: false
slack:
on_success: change
on_failure: always
rooms:
- secure: Oa4GIV4rgAr+Sa4It/GIGPWO6fVC/pcaRPiaIMfZf+xVXS07EA25CgLw2VvNVwUd7xrAxRfEDQ3fvOHE1ruiGYWjPDvVlZsLIzuOCCifcH3hcpVV6NPBMO4arbfc8NsrOtcOHaoZoOfC8CJFt4buQ+ytjY56gstJMLy7iwbjVh0=