-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
74 lines (67 loc) · 1.9 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
image: "julia:1"
cache:
paths:
- .julia
stages:
- build
- test
- testdocs
- deploy
build:
stage: build
script:
- julia -e 'using InteractiveUtils;
versioninfo()'
- julia --project -e 'using Pkg;
Pkg.instantiate();
Pkg.build("ConScape");
using ConScape;'
test:
script:
- julia -e 'using InteractiveUtils;
versioninfo()'
- julia --project -e 'using Pkg;
Pkg.test("ConScape"; coverage=true);'
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit_local(process_folder())'
variables:
CODECOV_TOKEN: "0c79cb5b-3787-4892-9d2b-7131a41c35d4"
weave:
stage: test
script:
# Temporarily add Weave like this until we have a released version of ConScape to use for Weave files
- julia --project -e 'using Pkg;
Pkg.add(PackageSpec(name="Weave"));'
# Temporarily add Optim and IJulia like this
- julia --project -e 'using Pkg;
Pkg.add(PackageSpec(name="Optim"));'
- julia --project -e 'using Pkg;
Pkg.add(PackageSpec(name="IJulia"));'
- julia --project --color=yes examples/make.jl
artifacts:
paths:
- examples/html
- examples/notebooks
test:docs:
stage: testdocs
dependencies:
- test
script:
# workaround for https://github.com/JuliaDocs/Documenter.jl/issues/686
- apt-get -qq update; apt-get -y install git
- julia --project=docs -e 'using Pkg; Pkg.instantiate(); Pkg.develop(PackageSpec(path=pwd()))'
- julia --project=docs --color=yes docs/make.jl
artifacts:
paths:
- docs/build
only:
pages:
stage: deploy
dependencies:
- test:docs
script:
- mv docs/build public # move to the directory picked up by Gitlab pages
artifacts:
paths:
- public
only:
- master