forked from kasaai/deeptriangle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (24 loc) · 840 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
26
27
28
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: R
sudo: false
cache:
packages: yes
directories:
- $HOME/bin
- $HOME/.TinyTeX
- $TRAVIS_BUILD_DIR/datasets
script:
- R CMD build .
- R CMD INSTALL .
- Rscript -e 'if (tinytex::tinytex_root() == "") tinytex::install_tinytex()'
- Rscript -e 'piggyback::pb_download(file = c("datasets/automl_results.csv", "datasets/predictions.tar.gz"))'
- Rscript -e 'if (!file.exists("datasets/predictions.feather")) untar("datasets/predictions.tar.gz", exdir = "datasets/")'
- Rscript -e 'dir.create("manuscript/dist")'
- Rscript -e 'rmarkdown::render("manuscript/manuscript.Rmd", output_dir = "manuscript/dist/")'
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
branch: master
local_dir: manuscript/dist