-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (61 loc) · 3.15 KB
/
.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
language: r
pandoc: false
sudo: true
cache:
- packages
- "/tmp/texlive"
- "/$HOME/texlive"
warnings_are_errors: false
before_install:
- source ./travis/texlive.sh
- tlmgr update --self
- tlmgr install acronym bigfoot blindtext chngcntr cmap nowidow mdframed navigator
ocgx2 media9 makecell
needspace tablefootnote tocloft xpatch multirow bbding mathastext isomath relsize
niceframe-type1
- if [ $TRAVIS_REPO_SLUG == "HughParsonage/grattex" ]; then tlmgr install tex-gyre
eulervm bold-extra fancyvrb realboxes manfnt lstaddons; fi
- if [ $TRAVIS_REPO_SLUG == "HughParsonage/grattex" ]; then sudo apt-get install poppler-utils;
fi
- tlmgr update --all
- sudo apt-get update
- sudo apt-get install texlive-bibtex-extra
#
# Shiny testing:
- "export PHANTOMJS_VERSION=2.1.1"
- "phantomjs --version"
- "export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH"
- "hash -r"
- "phantomjs --version"
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; fi"
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then hash -r; fi"
- "phantomjs --version"
install: echo Installation step
before_script:
- wget http://mirrors.ctan.org/biblio/biber/binaries/Linux/biber-linux_x86_64.tar.gz
- tar xzf biber-linux_x86_64.tar.gz
- export PATH=$PATH:$PWD
- tlmgr update biber chngcntr
- Rscript travis-pre-make.R
- Rscript travis-make.R
script:
- cd shiny/NegativeGearing-vs-Occupation
- R -f run_tests.R
- cd ../..
- Rscript -e 'knitr::knit("CGT_and_neg_gearing_parent.Rnw", quiet = TRUE)'
- pdflatex -interaction=nonstopmode CGT_and_neg_gearing_parent.tex > /dev/null
- pdflatex -interaction=nonstopmode CGT_and_neg_gearing_parent.tex
- biber CGT_and_neg_gearing_parent
- pdflatex -interaction=batchmode CGT_and_neg_gearing_parent.tex > /dev/null
- pdflatex -interaction=batchmode CGT_and_neg_gearing_parent.tex > /dev/null
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: YH+WdKpr0qTZ4O1QRm8EVihB7YCZIvmTxeCg8h+q8Q9Z2UXa1dPuuLqM/FFdNSDjZ7gYZ8Pi6gX04rEIvmbbJ++YwRGAJ7X1nOtfq8/DZgTwEA4i5hexDuw+i9FtGCS8AptLkO35ZEo+4SU3kOTRRXjJIZt29iGEps18F9+z9UAX3ntLQpmISPWgvjJUO80DY2pSg3iF7msaa6Llex9HWV6JI7CtsIkkgrJLnzprzv5Pi7k+Yq59uCH/c1gTu4wmVtKFpAxDR/58styuIAnInFb427gs2hvwik7c2Ury1LzL71lnc27NCy/rf25sL3zoHVrSj/gxt/LMVP2yUr3DPYyeEAONANTZeqh5l6l49+jeAkEE0hkU9RV6fFX06V41av3tG63blBfwLFcoPUHF9nxqp2M5gpoV6qzGcNxOpjmQ1kkB5F5TrnQk0QYeW/4USWI2d9etkZaWAadgyEBUSSANFXPlOaM0y1PgXeA0jhKMdj7dM/5rkQkE28S50qLeoDo0+4BWp2AgVxNwcgVdBXamJ2d2j9iweNi1RotiU4zA6RizqdKtsp2qH1TXoDrOrrj0w94vP2fbQ457Sp/m7v7AswWwFfxoI0i3wEyQL30j+CSq/c4EOS6QvwXhMA6Dqc2C6Lk1p8ddoaGj2ItX5nkPB2oAgh2dyFiZIP5qevU=
file: CGT_and_neg_gearing_parent.pdf
on:
repo: grattan/NegativeGearing2016
branch: master