Simplify the GitLabCI default template
This commit is contained in:
parent
9671bc6836
commit
dfbb72e011
@ -1,22 +1,8 @@
|
|||||||
{{#GITLABCOVERAGE}}
|
|
||||||
stages:
|
|
||||||
- test
|
|
||||||
- coverage
|
|
||||||
{{/GITLABCOVERAGE}}
|
|
||||||
Julia {{VERSION}}:
|
Julia {{VERSION}}:
|
||||||
stage: test
|
|
||||||
image: julia:{{VERSION}}
|
image: julia:{{VERSION}}
|
||||||
tags:
|
script: julia --project='.' -e 'using Pkg; Pkg.build(); Pkg.test({{#GITLABCOVERAGE}}; coverage=true{{/GITLABCOVERAGE}})'
|
||||||
- docker
|
|
||||||
script:
|
|
||||||
julia -e 'using Pkg; Pkg.build(); Pkg.test({{#GITLABCOVERAGE}}; coverage=true{{/GITLABCOVERAGE}})'
|
|
||||||
{{#GITLABCOVERAGE}}
|
{{#GITLABCOVERAGE}}
|
||||||
Coverage:
|
|
||||||
stage: coverage
|
|
||||||
coverage: /Test Coverage (\d+\.\d+%)/
|
coverage: /Test Coverage (\d+\.\d+%)/
|
||||||
image: julia:{{VERSION}}
|
after_script:
|
||||||
tags:
|
- julia -e 'using Printf; using Pkg; Pkg.add("Coverage"); using Coverage; c, t = get_summary(process_folder()); @printf "Test Coverage %.2f%%\n" 100c/t'
|
||||||
- docker
|
|
||||||
before_script: apt-get update && apt-get -y install git make unzip gcc bzip2
|
|
||||||
script: julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; c, t = get_summary(process_folder()); @printf("Test Coverage %.2f%%\n", 100c/t)'
|
|
||||||
{{/GITLABCOVERAGE}}
|
{{/GITLABCOVERAGE}}
|
||||||
|
Loading…
Reference in New Issue
Block a user