-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
44 lines (37 loc) · 3.07 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
os: linux
services:
- docker
language: generic
branches:
only:
- master
#install:
# - docker build --tag nuest/rockerverse-paper --file .binder/Dockerfile .
script:
- docker run --interactive --volume $(pwd):/rockerverse-paper --user $UID --env GITHUB_PAT nuest/rockerverse-paper Rscript -e 'setwd("/rockerverse-paper"); rmarkdown::render("rockerverse.Rmd")'
- ls -l
# only works for one branch, because of reset
after_success:
- mkdir -p site
- cp RJwrapper.pdf site/$TRAVIS_BRANCH.pdf
- cd site
- ls -l
- git init
- git config user.name "${GH_USER_NAME}"
- git config user.email "${GH_USER_EMAIL}"
- git remote add upstream "https://${GH_TOKEN}@${GH_REF}"
- git fetch upstream
- git reset upstream/gh-pages
- git add -A .
- rev=$(git rev-parse --short HEAD)
- git commit -m "Rebuild at ${rev}"
- git push -q upstream HEAD:gh-pages
env:
global:
# GITHUB_PAT to solve GH API rate limit
- secure: "at0zw2gJ+KR1Y9I7IGeiy0uyBHizVCcYfZ2iKjvxVUSNyMf7IB0X+ffODnJkVC/5aX0AMO8xIYZA35Q19DzF9WF73RkdcWU77cvmeyiwX2k/bgSFKvmILwBt/alrcksfh0HRr0NniTtU+Ip5ywhlCwR52nE5h58x0DJkfvSAI7HqZqjEJqwZZAvnYeW6+XH1isUDtMgqkgwUDmCgX3NPu3dlCD8RcfNbRnSWGebwW/BVPKG2/w/VwxnPwquPXQNcj7lar6UZSHMVap+RtqUcEVLnUcsgWzrtXjdD3GRsWAqT0HW2YyYv9pV5vwNUiKQlFs8FxKF9XjwMF+lJ6PVRWPPXMG8QMgfx1tn2G2di05m3kXFN4Kmmn5b8l4Qb1lxDy7gZxp4HVtvnb7a1Cb41hy87G57piIJPNC8CBtR50jHsECU8dg5lDvBkMAecKcg2or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