-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
42 lines (37 loc) · 1.14 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
variables:
JULIA_DEPOT_PATH: "$CI_PROJECT_DIR/.julia"
.test_template: &test_definition
script:
- mkdir -p "$CI_PROJECT_DIR/.julia" && ls -al "$CI_PROJECT_DIR/.julia"
- julia -e 'using Pkg; Pkg.add(PackageSpec(path=pwd())); Pkg.build("Neurthino"); Pkg.test("Neurthino"; coverage = true)'
- julia -e 'using Pkg; Pkg.add("Coverage");
import Neurthino; cd(joinpath(dirname(pathof(Neurthino)), ".."));
using Coverage; cl, tl = get_summary(process_folder());
println("(", cl/tl*100, "%) covered")'
- ls -al "$CI_PROJECT_DIR/.julia"
cache:
paths:
- "$CI_PROJECT_DIR/.julia"
key: "$CI_COMMIT_REF_SLUG"
test:julia-1.3:
image: docker.km3net.de/base/julia:1.3
<<: *test_definition
test:julia-1.6:
image: docker.km3net.de/base/julia:1.6
<<: *test_definition
pages:
image: docker.km3net.de/base/julia:1.6
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