diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b5ec13d..da96c3d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: