-
Notifications
You must be signed in to change notification settings - Fork 4
/
knitr.travis.yml
58 lines (52 loc) · 1.3 KB
/
knitr.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
language: r
latex: false
# environment variables
env:
- DISPLAY=:99.0 PATH=$HOME/bin:$PATH RGL_USE_NULL=TRUE
before_install:
- "curl -L https://xran.yihui.org/.gitconfig -o ~/.gitconfig"
- Rscript -e 'update.packages(.libPaths()[1], ask = FALSE)'
- Rscript -e "if (!require('xfun')) install.packages('xfun')"
- Rscript -e "xfun::pkg_load2('covr', 'tinytex')"
- Rscript -e "tinytex:::install_prebuilt()"
- rm TinyTeX.tar.gz
addons:
apt:
packages:
- ghc
- highlight
- optipng
- coffeescript
- asymptote
- graphviz
- scala
- qpdf
- texinfo
- cargo
- libmagick++-dev
- libpoppler-cpp-dev
- libglu1-mesa-dev
- libharfbuzz-dev
- libfribidi-dev
repos:
XRAN: https://xran.yihui.org
cache:
packages: yes
jobs:
include:
- r: oldrel
- r: release
# deploy to xran after integration tests
after_success:
- Rscript -e 'covr::codecov()'
- r: release
name: Check knitr-examples
script:
- git clone https://github.com/yihui/knitr-examples.git
- rm knitr-examples/cache -rf
- make integration
# deploy to xran after integration tests
after_success:
- export R_PKG="$(basename $TRAVIS_REPO_SLUG)"
- "curl -L https://xran.yihui.org/r-xran | bash"
- r: devel