blob: 4f573fe9a47b6804e0826533b78dee6c56de2234 [file] [log] [blame]
.test_template: &test_definition
# Uncomment below (and adjust as needed) to run the tests for specific references
# only, such as the default branch, a `development` branch, and so on:
# rules:
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# - if: $CI_COMMIT_BRANCH == "development"
script:
# Let's run the tests. Substitute `coverage = false` below, if you do not
# want coverage results.
- julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("DerekoVecs"); Pkg.test("DerekoVecs"; coverage = true)'
# Comment out below if you do not want coverage results.
- julia -e 'using Pkg; Pkg.add("Coverage");
import DerekoVecs; cd(joinpath(dirname(pathof(DerekoVecs)), ".."));
using Coverage; cl, tl = get_summary(process_folder());
println("(", cl/tl*100, "%) covered")'
test:
image: julia:latest
<<: *test_definition