-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
26 lines (23 loc) · 921 Bytes
/
.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
.test_template: &test_definition
only:
- master
- devel
script:
- env OPENBLAS_CORETYPE=haswell julia --compiled-modules=no -e 'using Pkg; Pkg.add(PackageSpec(path=pwd())); Pkg.test("HOODESolver"; coverage = true)'
test:1.3:
image: julia:1.4
<<: *test_definition
pages:
image: julia:1.3
stage: deploy
script:
- apt-get update -qq && apt-get install -y git # needed by Documenter
- env OPENBLAS_CORETYPE=haswell julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("HOODESolver");' # rebuild Julia (can be put somewhere else I'm sure
- env OPENBLAS_CORETYPE=haswell julia -e 'using Pkg; import HOODESolver; Pkg.add("Documenter")' # install Documenter
- env OPENBLAS_CORETYPE=haswell 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