mirror of
https://gitlab.com/MisterBiggs/astro-helper.git
synced 2025-06-16 07:06:43 +00:00
Update .gitlab-ci.yml
This commit is contained in:
parent
f836937a07
commit
438a6aa104
@ -19,22 +19,28 @@
|
|||||||
script:
|
script:
|
||||||
# Let's run the tests. Substitute `coverage = false` below, if you do not
|
# Let's run the tests. Substitute `coverage = false` below, if you do not
|
||||||
# want coverage results.
|
# 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.
|
# Comment out below if you do not want coverage results.
|
||||||
- julia -e 'using Pkg; Pkg.add("Coverage");
|
# - julia -e 'using Pkg; Pkg.add("Coverage");
|
||||||
import AstroHelper; cd(joinpath(dirname(pathof(AstroHelper)), ".."));
|
# import AstroHelper; cd(joinpath(dirname(pathof(AstroHelper)), ".."));
|
||||||
using Coverage; cl, tl = get_summary(process_folder());
|
# using Coverage; cl, tl = get_summary(process_folder());
|
||||||
println("(", cl/tl*100, "%) covered")'
|
# 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
|
||||||
test:0.7:
|
# test:0.7:
|
||||||
image: julia: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_definition
|
||||||
|
|
||||||
test:1.0:
|
|
||||||
image: julia:1.0
|
|
||||||
<<: *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:
|
||||||
# test:1.1-dev (not sure there is such an image in docker, so not tested yet):
|
# 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.
|
# `\(\d+.\d+\%\) covered` in the `test coverage parsing` textfield.
|
||||||
|
|
||||||
# Example documentation deployment
|
# Example documentation deployment
|
||||||
pages:
|
# pages:
|
||||||
image: julia:0.7
|
# image: julia:0.7
|
||||||
stage: deploy
|
# stage: deploy
|
||||||
script:
|
# script:
|
||||||
- apt-get update -qq && apt-get install -y git # needed by Documenter
|
# - 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; 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 -e 'using Pkg; import AstroHelper; Pkg.add("Documenter")' # install Documenter
|
||||||
- julia --color=yes docs/make.jl # make documentation
|
# - julia --color=yes docs/make.jl # make documentation
|
||||||
- mv docs/build public # move to the directory picked up by Gitlab pages
|
# - mv docs/build public # move to the directory picked up by Gitlab pages
|
||||||
artifacts:
|
# artifacts:
|
||||||
paths:
|
# paths:
|
||||||
- public
|
# - public
|
||||||
only:
|
# only:
|
||||||
- master
|
# - master
|
||||||
|
|
||||||
# WARNING: This template is using the `julia` images from [Docker
|
# WARNING: This template is using the `julia` images from [Docker
|
||||||
# Hub][3]. One can use custom Julia images and/or the official ones found
|
# Hub][3]. One can use custom Julia images and/or the official ones found
|
||||||
|
Loading…
x
Reference in New Issue
Block a user