-
Notifications
You must be signed in to change notification settings - Fork 75
/
.travis.yml
25 lines (25 loc) · 994 Bytes
/
.travis.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
language: ruby
rvm:
- 1.9.3
script: /bin/bash whitepaper/travis.sh
# Install LaTeX. This usually takes ~1 hour...
before_install:
- sudo apt-get install -qq bc tcsh
- yes "" | sudo apt-add-repository ppa:texlive-backports/ppa
- sudo apt-get update -y
- sudo apt-get install -y
inkscape
texlive-fonts-recommended
texlive-latex-extra
texlive-latex-recommended
texlive-xetex
# Finally, if it's the master branch being updated, force-push the
# resulting PDF to an otherwise empty "pdf" branch:
after_success: |
if [ -n "$GITHUB_API_KEY" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
git checkout --orphan pdf
git rm -rf .
git add -f whitepaper/LSST_Observing_Strategy_White_Paper.pdf
git -c user.name='travis' -c user.email='travis' commit -m init
git push -q -f https://drphilmarshall:[email protected]/LSSTScienceCollaborations/ObservingStrategy pdf
fi