-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
62 lines (54 loc) · 1.8 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
# Build is configured to run both: "Build pushed branches" & "Build pushed pull requests"
# Purpose of having "Build pushed branches" is to run build against master branch every time we merge PR.
# However we don't want to trigger unnecessary build against feature branch when we have PR already opened and we amend feature branch.
# Therefore following rule whitelist "master" branch only.
branches:
only:
- "master"
sudo: false
language: go
env:
global:
- DEP_VERSION="v0.5.0"
- GO111MODULE=on
- GOLANGCI_VERSION="v1.12.3"
before_install:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin ${GOLANGCI_VERSION}
# Skip the install step. Don't `go get` dependencies. Only build with the code in vendor/
install: skip
matrix:
# It's ok if our code fails on unstable development versions of Go.
allow_failures:
- go: master
# Don't wait for tip tests to finish. Mark the test run green if the
# tests pass on the stable versions of Go.
fast_finish: true
include:
- go: 1.10.x
before_install:
- curl -L -s https://github.com/golang/dep/releases/download/${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin ${GOLANGCI_VERSION}
install:
- make install
script:
- make static-check
- make test
- go: 1.11.x
install:
- go build ./pkg/...
- go mod vendor
script:
- make static-check
- make test-modules
- go: master
install:
- go build ./pkg/...
- go mod vendor
script:
- make static-check
- make test-modules
notifications:
email: false
after_success:
- bash <(curl -s https://codecov.io/bash) -F unit