PkgTemplates.jl/test/fixtures/AllPlugins/.gitlab-ci.yml
Curtis Vogt e258aacd7a Use literal block style for multi-line YAML
Allows for Julia code to not require the use of semi-colon which is
matches how most users will write Julia code. An additional benefit
is that it allows for use of single line comments.
2020-02-14 12:09:13 -06:00

28 lines
592 B
YAML

.definitions:
script: &script
script:
- |
julia --project=@. -e '
using Pkg
Pkg.build()
Pkg.test(coverage=true)'
coverage: &coverage
coverage: /Test coverage (\d+\.\d+%)/
after_script:
- |
julia -e '
using Pkg
Pkg.add("Coverage")
using Coverage
c, t = get_summary(process_folder())
using Printf
@printf "Test coverage %.2f%%\n" 100c / t'
Julia 1.0:
image: julia:1.0
<<: *script
<<: *coverage
Julia 1.3:
image: julia:1.3
<<: *script
<<: *coverage