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}}:
|
||||
stage: test
|
||||
image: julia:{{VERSION}}
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
julia -e 'using Pkg; Pkg.build(); Pkg.test({{#GITLABCOVERAGE}}; coverage=true{{/GITLABCOVERAGE}})'
|
||||
script: julia --project='.' -e 'using Pkg; Pkg.build(); Pkg.test({{#GITLABCOVERAGE}}; coverage=true{{/GITLABCOVERAGE}})'
|
||||
{{#GITLABCOVERAGE}}
|
||||
Coverage:
|
||||
stage: coverage
|
||||
coverage: /Test Coverage (\d+\.\d+%)/
|
||||
image: julia:{{VERSION}}
|
||||
tags:
|
||||
- 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)'
|
||||
after_script:
|
||||
- julia -e 'using Printf; using Pkg; Pkg.add("Coverage"); using Coverage; c, t = get_summary(process_folder()); @printf "Test Coverage %.2f%%\n" 100c/t'
|
||||
{{/GITLABCOVERAGE}}
|
||||
|
Loading…
Reference in New Issue
Block a user