1
0
mirror of https://gitlab.com/MisterBiggs/stl-process.git synced 2025-08-03 12:01:33 +00:00

see if ci likes this

This commit is contained in:
2022-04-05 16:50:53 -07:00
parent 51e6cb78b1
commit a5f0ac57fc

View File

@@ -20,15 +20,13 @@
# rules: # rules:
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# - if: $CI_COMMIT_BRANCH == "development" # - if: $CI_COMMIT_BRANCH == "development"
script: script: |
# Let's run the tests. Substitute `coverage = false` below, if you do not julia --project -e '
# want coverage results. using Pkg;
- julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("MyPackage"); Pkg.test("MyPackage"; coverage = true)' Pkg.instantiate();
# Comment out below if you do not want coverage results. Pkg.build();
- julia -e 'using Pkg; Pkg.add("Coverage"); Pkg.test(; coverage=true);'
import MyPackage; cd(joinpath(dirname(pathof(MyPackage)), "..")); interruptible: true
using Coverage; cl, tl = get_summary(process_folder());
println("(", cl/tl*100, "%) covered")'
# Name a test and select an appropriate image. # Name a test and select an appropriate image.
# images comes from Docker hub # images comes from Docker hub
@@ -37,7 +35,7 @@ test:1.7:
<<: *test_definition <<: *test_definition
test:1.8: test:1.8:
image: julia:1.8 image: julia:1.8-rc
<<: *test_definition <<: *test_definition
# Maybe you would like to test your package against the development branch: # Maybe you would like to test your package against the development branch: