Created
October 8, 2019 09:57
-
-
Save islishude/20e596f71239bd81510dce118613aac5 to your computer and use it in GitHub Desktop.
gitlab ci example for golang project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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