From 438a6aa104abfdc2888243a77cf9625d80ab379a Mon Sep 17 00:00:00 2001 From: Anson Biggs Date: Thu, 21 Jan 2021 00:39:09 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 54 ++++++++++++++++++++++++++++---------------------- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 08d3e3c..adcb6f5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,22 +19,28 @@ 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("AstroHelper"); Pkg.test("AstroHelper"; coverage = true)' + - julia -e 'using Pkg; Pkg.add(pwd()); Pkg.build("AstroHelper"); Pkg.test("AstroHelper"; coverage = true)' # Comment out below if you do not want coverage results. - - julia -e 'using Pkg; Pkg.add("Coverage"); - import AstroHelper; cd(joinpath(dirname(pathof(AstroHelper)), "..")); - using Coverage; cl, tl = get_summary(process_folder()); - println("(", cl/tl*100, "%) covered")' + # - julia -e 'using Pkg; Pkg.add("Coverage"); + # import AstroHelper; cd(joinpath(dirname(pathof(AstroHelper)), "..")); + # using Coverage; cl, tl = get_summary(process_folder()); + # println("(", cl/tl*100, "%) covered")' # Name a test and select an appropriate image. # images comes from Docker hub -test:0.7: - image: julia:0.7 +# test:0.7: +# image: julia:0.7 +# <<: *test_definition + +# test:1.0: +# image: julia:1.0 +# <<: *test_definition + +test:1.5: + image: julia:1.5 <<: *test_definition -test:1.0: - image: julia:1.0 - <<: *test_definition + # Maybe you would like to test your package against the development branch: # test:1.1-dev (not sure there is such an image in docker, so not tested yet): @@ -52,20 +58,20 @@ test:1.0: # `\(\d+.\d+\%\) covered` in the `test coverage parsing` textfield. # Example documentation deployment -pages: - image: julia:0.7 - stage: deploy - script: - - apt-get update -qq && apt-get install -y git # needed by Documenter - - julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("AstroHelper");' # rebuild Julia (can be put somewhere else I'm sure - - julia -e 'using Pkg; import AstroHelper; Pkg.add("Documenter")' # install Documenter - - julia --color=yes docs/make.jl # make documentation - - mv docs/build public # move to the directory picked up by Gitlab pages - artifacts: - paths: - - public - only: - - master +# pages: +# image: julia:0.7 +# stage: deploy +# script: +# - apt-get update -qq && apt-get install -y git # needed by Documenter +# - julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("AstroHelper");' # rebuild Julia (can be put somewhere else I'm sure +# - julia -e 'using Pkg; import AstroHelper; Pkg.add("Documenter")' # install Documenter +# - julia --color=yes docs/make.jl # make documentation +# - mv docs/build public # move to the directory picked up by Gitlab pages +# artifacts: +# paths: +# - public +# only: +# - master # WARNING: This template is using the `julia` images from [Docker # Hub][3]. One can use custom Julia images and/or the official ones found