
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.
28 lines
592 B
YAML
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
|