Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempting to deploy .pdf #63

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
28 changes: 27 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
language: python

# Install latex, and the various packages used by the start_paper Makefile:
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y gsl-bin libgsl0-dev
- sudo apt-get install latexmk
- sudo apt-get install latex-xcolor
addons:
apt:
packages:
- texlive-generic-recommended
- texlive-latex-recommended
- texlive-latex-extra
- texlive-fonts-recommended
- texlive-fonts-extra
- texlive-publishers

install:
- sudo apt-get update
# Install the dependencies and the package:
Expand All @@ -24,7 +40,11 @@ script:
- jupyter nbconvert --ExecutePreprocessor.kernel_name=python --ExecutePreprocessor.timeout=600 --to html --execute docs/notebooks/demo.ipynb ; cp docs/notebooks/demo.html .
- jupyter nbconvert --ExecutePreprocessor.kernel_name=python --ExecutePreprocessor.timeout=600 --to html --execute docs/notebooks/kld.ipynb ; cp docs/notebooks/kld.html .
# Build the docs, the same way readthedocs does it:
- cd docs ; sphinx-build -b html . _build/html ; cd -
- cd docs ; sphinx-build -b html . _build/html # ; cd -
# Now make the PDF, and move it to the top level, ready for deployment.
- make -C desc-0000-qp-photo-z_approximation
- cd -
- cp docs/desc-0000-qp-photo-z_approximation/main.pdf .

# Finally, if it's the master branch being updated, force-push the
# notebook html pages to an otherwise empty "html" branch:
Expand All @@ -36,4 +56,10 @@ after_success: |
git add -f demo.html kld.html
git -c user.name='travis' -c user.email='travis' commit -m init
git push -q -f https://drphilmarshall:[email protected]/aimalz/qp html
if [ -n "$GITHUB_API_KEY" ]; then
git checkout --orphan pdf
git rm -rf .
git add -f main.pdf
git -c user.name='travis' -c user.email='travis' commit -m init
git push -q -f https://aimalz:[email protected]/aimalz/qp pdf
fi