From a5f0ac57fc8231419e4ba53af4fd6c3d53abe09f Mon Sep 17 00:00:00 2001 From: Anson Biggs Date: Tue, 5 Apr 2022 16:50:53 -0700 Subject: [PATCH] see if ci likes this --- .gitlab-ci.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) 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: