-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (43 loc) · 1015 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
46
47
48
49
50
51
52
53
54
55
language: go
go:
- "1.14"
os:
- linux
git:
depth: 1
quiet: true
submodules: false
notifications:
email: false
env:
global:
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org
- BRANCH="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
before_install:
- echo "current branch is ${BRANCH}"
- if [ "${BRANCH}" == "master" ]; then travis_terminate 0; fi
stages:
- name: Tests
jobs:
include:
- stage: "Tests"
name: "Build rotator"
install: go mod download
script: make build
- stage: "Tests"
name: "Build statistic"
install: go mod download
script: make build-statistic
- stage: "Tests"
name: "Lint"
install: go install github.com/golangci/golangci-lint/cmd/golangci-lint
script: make lint
- stage: "Tests"
name: "Unit tests"
install: go mod download
script: make test
- stage: "Tests"
name: "Integration tests"
install: go mod download
script: make integration-tests