-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
46 lines (45 loc) · 2.31 KB
/
.travis.yml
File metadata and controls
46 lines (45 loc) · 2.31 KB
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
language: cpp
before_install:
- export CC="gcc-4.8 -std=gnu99"
- export CXX="g++-4.8 -std=c++11"
- curl "https://raw.github.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh" -o dropbox_uploader.sh
- chmod 755 dropbox_uploader.sh
- echo -e "APPKEY=${APPKEY}\nAPPSECRET=${APPSECRET}\nACCESS_LEVEL=sandbox\nOAUTH_ACCESS_TOKEN=${OAUTH_ACCESS_TOKEN}\nOAUTH_ACCESS_TOKEN_SECRET=${OAUTH_ACCESS_TOKEN_SECRET}" > ~/.dropbox_uploader
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.8
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
- chmod 755 ./travis-tool.sh
- ./travis-tool.sh bootstrap
- mkdir ~/.R
- echo -e "CC=gcc-4.8 -std=gnu99\nCXX=g++-4.8 -std=c++11\nCXXFLAGS=-g -O3\nCFLAGS=-g -O3\n" > ~/.R/Makevars
- sudo apt-get install -qq ttf-sil-gentium ttf-sil-gentium-basic
- sudo apt-get install -qq texinfo texlive-fonts-recommended texlive-fonts-extra ttf-inconsolata ttf-droid
- sudo apt-get install -qq texlive-xetex texlive-latex-recommended texlive-latex-extra
script:
- cd article
- pdflatex RJwrapper.tex
- bibtex RJwrapper
- pdflatex RJwrapper.tex
- pdflatex RJwrapper.tex
- cp RJwrapper.pdf ../Rcpp11_article.pdf
- cd ..
after_failure:
- ./travis-tool.sh dump_logs
after_success:
- ./dropbox_uploader.sh upload Rcpp11_article.pdf
notifications:
email:
on_success: change
on_failure: change
env:
global:
- ACCESS_LEVEL=sandbox
# OAUTH_ACCESS_TOKEN
- secure: "oapv0v/tR/vyCn94OvMMUAAArSGkjS99bfWMJ5wPoakZWSxB95bxBw91uEd+R5i2tMQ9HJ1+xqpSwzyY7HwtO1LAeHSwQbUywlmImpeWT1mIFQvQnCK6UntRPqEultMlXMPkI15AtRY/Y2O8ymZ+LfaNYKnfiE6ievEq3hLkYkQ="
# OAUTH_ACCESS_TOKEN_SECRET
- secure: "V16IuBvKpl8kTc+x/Wlj5qpq9BpuBf8Ckr/p5Tp5M1ngeV0vi9mPEwTDreuXQwAxwoEI+QHAKp1ZJRt6dJU1p/S99r1XC31nWeQVZ8eFnRaoQ9kaifmj/x25lOHSSSANXPc3jAjfLVykx6piaSjs3CLWStI5b78Py41+cVexYI0="
# APPKEY
- secure: "SX2wfAetBCPQAU03mK0rLDtTmBjS8IBAJxIS3gaeiwpcEBFlPCHRKWGHksG255bQ71wa2b7JD4FvZML6iEDEhBggzqEh4EBUA1Uk3Yc/pS9LCPYQYgIe1SGhPJicx8gXxtqvt652z2CW+3nclUAxaEdVxmdB6CjtF6WG8HQoZP4="
# APPSECRET
- secure: "OEYuTL9ylGzTKuXsjzSxoieO5IJAf2jQhVbiE7KA2iLzoODB7QeyvDX15TNWgpP20AFjRKQ9x+120kqZylAZzG0pwJqfNmkvPsktHK70N2T7a3PnDH9lLdc7OpnLx9//ym/KSqa6zhR9wYFMePVI0U0PdknPaR/irU7z8VdjRVM="