Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | language: go |
2 | |||||
3 | go: | ||||
4 | - "1.11" | ||||
5 | |||||
6 | services: | ||||
7 | - docker | ||||
8 | |||||
9 | cache: | ||||
10 | directories: | ||||
11 | - ${GOPATH}/pkg/mod | ||||
12 | |||||
13 | jobs: | ||||
14 | include: | ||||
15 | - stage: test | ||||
16 | if: type == pull_request | ||||
17 | script: make test | ||||
18 | env: | ||||
19 | - GO111MODULE=on | ||||
20 | |||||
21 | - stage: test_and_cover | ||||
22 | name: "Test (with coverage)" | ||||
23 | if: type != pull_request | ||||
24 | script: make cover publish_cover | ||||
25 | env: | ||||
26 | - GO111MODULE=on |