blob: 4c9f716cda8d05381545c0d7cd0dd99c938a182e [file] [log] [blame]
Marc Kupietz972d1d22022-07-22 09:46:38 +02001.test_template: &test_definition
2 # Uncomment below (and adjust as needed) to run the tests for specific references
3 # only, such as the default branch, a `development` branch, and so on:
4 # rules:
5 # - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
6 # - if: $CI_COMMIT_BRANCH == "development"
7 script:
8 # Let's run the tests. Substitute `coverage = false` below, if you do not
9 # want coverage results.
Marc Kupietz0da270f2022-07-22 10:12:47 +020010 - julia --project -e 'using Pkg; Pkg.build(); Pkg.test(coverage = true)'
Marc Kupietz972d1d22022-07-22 09:46:38 +020011 # Comment out below if you do not want coverage results.
Marc Kupietz0da270f2022-07-22 10:12:47 +020012 # - julia -e 'using Pkg; Pkg.add("Coverage");
13 # import DerekoVecs; cd(joinpath(dirname(pathof(DerekoVecs)), ".."));
14 # using Coverage; cl, tl = get_summary(process_folder());
15 # println("(", cl/tl*100, "%) covered")'
Marc Kupietz972d1d22022-07-22 09:46:38 +020016
17test:
18 image: julia:latest
19 <<: *test_definition
20