-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
35 lines (31 loc) · 1011 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
27
28
29
30
31
32
33
34
35
before_script:
# Workaround for `https://github.com/JuliaDocs/Documenter.jl/issues/868`.
- apt-get -qq update; apt-get -y install git
Julia Latest:
image: julia:latest
script: julia --project='@.' -e 'using Pkg; Pkg.build(); Pkg.test()'
Julia 1.Latest:
image: julia:1
script: julia --project='@.' -e 'using Pkg; Pkg.build(); Pkg.test(; coverage=true)'
coverage: /Test Coverage (\d+\.\d+%)/
after_script:
- julia -e 'using Printf; using Pkg; Pkg.add("Coverage"); using Coverage; c, t = get_summary(process_folder()); @printf "Test Coverage %.2f%%\n" 100c/t'
Julia 1.0:
image: julia:1.0
script: julia --project='@.' -e 'using Pkg; Pkg.build(); Pkg.test()'
pages:
image: julia:1
stage: deploy
script:
- julia --project=docs -e '
using Pkg;
Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate();
include("docs/make.jl");'
- mkdir -p public
- mv docs/build public/dev
artifacts:
paths:
- public
only:
- master