forked from MiniZinc/minizinc-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
28 lines (27 loc) · 1.25 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
stages:
- build
- test
build:linux:
stage: build
image: guidotack/sphinx-doc:latest
script:
- curl --silent -o minizinc.zip --location --header "PRIVATE-TOKEN:$ACCESS_TOKEN" "https://gitlab.com/api/v4/projects/minizinc%2Fminizinc/jobs/artifacts/develop/download?job=build:linux"
- unzip -q minizinc.zip
- curl --silent -o vendor.zip --location --header "PRIVATE-TOKEN:$ACCESS_TOKEN" "https://gitlab.com/api/v4/projects/minizinc%2Fvendor/jobs/artifacts/master/download?job=bundle:linux"
- unzip -q vendor.zip
- cp $PWD/minizinc/share/minizinc/gecode_presolver/gecode.mzn $PWD/minizinc/share/minizinc/std/
- cp $PWD/vendor/chuffed/share/minizinc/chuffed/chuffed.mzn $PWD/minizinc/share/minizinc/std/
- echo 'include "globals.mzn"; include "gecode.mzn"; include "chuffed.mzn";' > $PWD/minizinc/share/minizinc/std/all.mzn
- ./minizinc/bin/mzn2doc --rst-output --include-stdlib --output-base $PWD/en/lib $PWD/minizinc/share/minizinc/std/all.mzn
- ./minizinc/bin/mzn2doc --rst-output --include-stdlib --output-base $PWD/chi/lib $PWD/minizinc/share/minizinc/std/all.mzn
- cd en
- make html latexpdf
- cd ../chi
- make html latexpdf
artifacts:
paths:
- en/_build
- chi/_build
tags:
- linux
- docker