Skip to content

Instantly share code, notes, and snippets.

@islishude
Created October 8, 2019 09:57
Show Gist options
  • Save islishude/20e596f71239bd81510dce118613aac5 to your computer and use it in GitHub Desktop.
Save islishude/20e596f71239bd81510dce118613aac5 to your computer and use it in GitHub Desktop.
gitlab ci example for golang project
stages:
- test
.testtpl: &test_template
coverage: '/coverage: \d+\.\d+% of statements/'
before_script:
- "apk add ca-certificates git"
script:
- "go test -v -cover ./..."
test_go1.13:
stage: test
image: golang:1.13-alpine
<<: *test_template
test_go1.12:
image: golang:1.12-alpine
<<: *test_template
test_go1.11:
stage: test
image: golang:1.11-alpine
<<: *test_template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment