blob: 38968bce67ef6b2b8ad7893ceeb2deb67957a440 [file] [log] [blame]
language: go
go:
- "1.13"
services:
- docker
cache:
directories:
- ${GOPATH}/pkg/mod
jobs:
include:
- stage: test
if: type == pull_request
script: make test
env:
- GO111MODULE=on
- stage: test_and_cover
name: "Test (with coverage)"
if: type != pull_request
script: make cover publish_cover
env:
- GO111MODULE=on