To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 1c6399aa authored by Victor's avatar Victor
Browse files

adding test to gitlab-ci

parent 1a7a9026
Pipeline #74899 failed with stage
in 57 minutes and 31 seconds
pages: .test_template: &test_definition
image: julia:1.4 # Uncomment below if you would like to run the tests on specific references
stage: deploy # only, such as the branches `master`, `development`, etc.
# only:
# - master
# - development
script: script:
- apt-get update -qq && apt-get install -y git # needed by Documenter # Let's run the tests. Substitute `coverage = false` below, if you do not
- julia -e 'using Pkg; Pkg.add(PackageSpec(path =pwd())); Pkg.build("ABMEv");' # rebuild Julia (can be put somewhere else I'm sure # want coverage results.
- julia -e 'using Pkg; import ABMEv; Pkg.add("Documenter")' # install Documenter - julia -e 'using Pkg; Pkg.add(PackageSpec(path =pwd())); Pkg.build("ABMEv"); Pkg.test("ABMEv"; coverage = true)'
- julia --color=yes docs/make.jl # make documentation # Comment out below if you do not want coverage results.
- mv docs/build public # move to the directory picked up by Gitlab pages - julia -e 'using Pkg; Pkg.add("Coverage");
artifacts: import ABMEv; cd(joinpath(dirname(pathof(ABMEv)), ".."));
paths: using Coverage; cl, tl = get_summary(process_folder());
- public println("(", cl/tl*100, "%) covered")'
only:
- master # Name a test and select an appropriate image.
# images comes from Docker hub
test:0.7:
image: julia:0.7
<<: *test_definition
test:1.0:
image: julia:1.0
<<: *test_definition
## Below commented because gitlab.ethz.ch has disabled Pages feature
# pages:
# image: julia:1.4
# stage: deploy
# script:
# - apt-get update -qq && apt-get install -y git # needed by Documenter
# - julia -e 'using Pkg; Pkg.add(PackageSpec(path =pwd())); Pkg.build("ABMEv");' # rebuild Julia (can be put somewhere else I'm sure
# - julia -e 'using Pkg; import ABMEv; 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment