mirror of
https://gitlab.com/MisterBiggs/stl-process.git
synced 2025-08-03 03:51:27 +00:00
see if ci likes this
This commit is contained in:
@@ -20,15 +20,13 @@
|
||||
# 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("MyPackage"); Pkg.test("MyPackage"; coverage = true)'
|
||||
# Comment out below if you do not want coverage results.
|
||||
- julia -e 'using Pkg; Pkg.add("Coverage");
|
||||
import MyPackage; cd(joinpath(dirname(pathof(MyPackage)), ".."));
|
||||
using Coverage; cl, tl = get_summary(process_folder());
|
||||
println("(", cl/tl*100, "%) covered")'
|
||||
script: |
|
||||
julia --project -e '
|
||||
using Pkg;
|
||||
Pkg.instantiate();
|
||||
Pkg.build();
|
||||
Pkg.test(; coverage=true);'
|
||||
interruptible: true
|
||||
|
||||
# Name a test and select an appropriate image.
|
||||
# images comes from Docker hub
|
||||
@@ -37,7 +35,7 @@ test:1.7:
|
||||
<<: *test_definition
|
||||
|
||||
test:1.8:
|
||||
image: julia:1.8
|
||||
image: julia:1.8-rc
|
||||
<<: *test_definition
|
||||
|
||||
# Maybe you would like to test your package against the development branch:
|
||||
|
Reference in New Issue
Block a user