forked from sisl/tufte_algorithms_book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
56 lines (50 loc) · 1.13 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
stages:
- test
- deploy
# To initialize submodules you need to set variables
# GIT_SUBMODULE_STRATEGY=recursive
# in gitlab CI/CD page
before_script:
- cd style &&
python3 setup.py install &&
cd ..
- cd lexer &&
python3 setup.py install &&
cd ..
# update pythontex to 0.17-dev
- git clone https://github.com/gpoore/pythontex.git &&
cd pythontex/pythontex &&
echo 1 | python3 pythontex_install.py &&
cd ../..
# install julia dependency
- julia install_pkgs.jl REQUIRE
.test_template: &test_definition
script:
- julia pull_julia_code.jl
- julia runtests.jl
Julia 1.0:
image: johnnychen94/juliabook:1.0
stage: test
<<: *test_definition
Julia 1.1:
image: johnnychen94/juliabook:1.1
stage: test
<<: *test_definition
Julia 1.2:
image: johnnychen94/juliabook:1.2
stage: test
<<: *test_definition
# compile the book only when all tests pass
Deploy:
image: johnnychen94/juliabook:stable
stage: deploy
script:
# compile the book
- julia pull_julia_code.jl
- lualatex book
- pythontex3 book
- biber book
- lualatex book
artifacts:
paths:
- "book.pdf"