blob: b9b0edae5db8bba48a6896bcbe0ab86a6ffddba9 [file] [log] [blame]
language: go
go:
- "1.11"
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