diff options
author | Harald Welte <laforge@osmocom.org> | 2021-04-11 10:58:30 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-04-11 12:20:29 +0200 |
commit | e4759fd5cd7679bb31ea500f4f37b4a944bed120 (patch) | |
tree | d558a723940ccaf7f255d962c27feb190f7c1a8c /contrib | |
parent | 348c195e970e89ccde018e06483eae56aea1da50 (diff) |
contrib/jenkins.sh: Build and publish PDF manual
Change-Id: I3f01e93dd5a25d26feb3d067a171244a20f0f8e5
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/jenkins.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index dc2692c..2d9653a 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -1,4 +1,10 @@ #!/bin/sh +# jenkins build helper script for pysim. This is how we build on jenkins.osmocom.org +# +# environment variables: +# * WITH_MANUALS: build manual PDFs if set to "1" +# * PUBLISH: upload manuals after building if set to "1" (ignored without WITH_MANUALS = "1") +# set -e @@ -24,8 +30,12 @@ python -m unittest discover -v -s tests/ pip install sphinx pip install sphinxcontrib-napoleon pip3 install -e 'git+https://github.com/osmocom/sphinx-argparse@master#egg=sphinx-argparse' -(cd docs && make html) +(cd docs && make html latexpdf) # run the test with physical cards cd pysim-testdata ../tests/pysim-test.sh + +if [ "$WITH_MANUALS" = "1" ] && [ "$PUBLISH" = "1" ]; then + make -C "$base/docs" publish +fi |