Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 1 | language: go |
2 | |||||
3 | go: | ||||
mpagenko | bb47bc2 | 2021-04-20 13:29:09 +0000 | [diff] [blame] | 4 | - "1.13" |
Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame] | 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 |