forked from cnp3/ebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtravis.sh
executable file
·34 lines (31 loc) · 910 Bytes
/
travis.sh
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
#!/bin/bash
# install the required python extensions
mkdir python
cd python
git clone https://github.com/obonaventure/mscgen.git
pip3 install -e mscgen
git clone https://github.com/obonaventure/tikz.git
pip3 install -U -e tikz
cd ..
# on error exit
set -e
# Flags used here, not in `make html`:
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
# -N Do not emit colors
# -T output full traceback
# Build images
cd pkt
make
cd ..
# sphinx requires that a pdf version is available as file id downloadable
mkdir tmp
cd tmp
mkdir latex
cd latex
touch CNP3.pdf
cd ../..
# Spell checker
sphinx-build --keep-going -b spelling . tmp
# --keep-going continue the processing after a warning
sphinx-build -WNT --keep-going -b html . tmp