-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
38 lines (35 loc) · 1.47 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.test_template: &test_definition
# Uncomment below if you would like to run the tests on specific references
# only, such as the branches `master`, `development`, etc.
# only:
# - master
# - development
script:
# Let's run the tests. Substitute `coverage = false` below, if you do not
# want coverage results.
- julia -e 'using Pkg; Pkg.add(PackageSpec(path =pwd())); Pkg.build("EvoId"); Pkg.test("EvoId"; coverage = true)'
# Comment out below if you do not want coverage results.
- julia -e 'using Pkg; Pkg.add("Coverage");
import EvoId; cd(joinpath(dirname(pathof(EvoId)), ".."));
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:1.4:
image: julia:1.4
<<: *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("EvoId");' # rebuild Julia (can be put somewhere else I'm sure
# - julia -e 'using Pkg; import EvoId; 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