forked from markus-wa/demoinfocs-golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (47 loc) · 1.29 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
61
62
language: go
sudo: required
go:
- 1.11.x
- stable
- master
matrix:
# Failing on the development version of Go isn't too bad.
allow_failures:
- go: master
env:
- GO111MODULE=on
before_install:
# install 7zip for decompressing test demos
- sudo apt-get install -y p7zip-full
# Override Travis's default 'go get' step, since we use Go modules
install:
- go mod download
before_script:
# Install interface generator
- GO111MODULE=off go get github.com/vburenin/ifacemaker
# Fetch refs for linter
- git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
- git fetch
# Install golangci-lint
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.17.1
script:
# Compile
- bin/build.sh
# Make sure generated code is up-to-date
- bin/check-interfaces-generated.sh
# Lint changed code
- bin/lint-changes.sh
# Run race tests
- bin/race-tests.sh
# Coverage
# Note: We run ALL tests again to get full coverage
# Race tests are too slow and skip the regression set
- bin/coverage.sh
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/511da3cf50cdf951116d
on_success: change
on_failure: always