-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (31 loc) · 1008 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
29
30
31
32
33
34
35
36
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: R
sudo: false
cache:
packages: yes
directories:
- $TRAVIS_BUILD_DIR/img
dist: trusty
services:
- docker
before_install:
- docker pull jgoldfar/pandoc-nbconvert-docker
- sudo apt-get update
- sudo apt-get install python3
- sudo apt-get install python3-pip
- sudo pip3 install virtualenv
# - virtualenv -p python3 . ; source ./bin/activate; pip3 install requests; pip3 install tqdm
- Rscript -e 'install.packages(c("googlesheets", "readr"))'
script:
- ori_dir=`pwd`
- mkdir docs; touch docs/.nojekyll; cd docs; mv ../article.ipynb .
- docker run --rm -v `pwd`:/source jgoldfar/pandoc-nbconvert-docker nbconvert article.ipynb --to markdown
- cd $ori_dir
deploy:
- provider: pages # Deploy master to branch win-build
skip-cleanup: true
github-token: $GH_TOKEN # Set in travis-ci.org dashboard
keep-history: true
local-dir: docs
on:
branch: master