-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
47 lines (40 loc) · 3.21 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
45
46
47
os: linux
services:
- docker
language: generic
branches:
only:
- master
#install:
# - docker build --tag ten-simple-rules-dockerfiles .
# - access to GITHUB_PAT for rate limit
# - --user is needed to write into mounted directory
script:
- docker run --interactive --name tsrd --volume $(pwd):/tsrd nuest/ten-simple-rules-dockerfiles Rscript -e 'setwd("/tsrd"); rmarkdown::render("ten-simple-rules-dockerfiles.Rmd", output_file = "/tmp/tsrd.pdf")'
- mkdir -p site
- docker cp tsrd:/tmp/tsrd.pdf site/ten-simple-rules-dockerfiles.pdf
- ls -l
- ls -l site
# only works for one branch, because of reset
after_success:
- 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+lJ6PVRWPPXMG8QMgfx1tn2G2di05m3kXFN4Kmmn5b8l4Qb1lxDy7gZxp4HVtvnb7a1Cb41hy87G57piIJPNC8CBtR50jHsECU8dg5lDvBkMAecKcg2orQJdPwQBI63poeOlRLjTPJvDGLGnoKOjzzPMjVCHRCdLs2c1y/KFQvueTJ8T/E8dOzmLkQEMXg+tjUbvgYLyvRgyiu9sxQVVcokZF7eb53WppCuGcsyqNShQ0lF6L41ei/Qfb1N0a3JkBrWuHmxt1a7bmPmFTaR1h1DnV5v+dfaeOZKOp1ojWzT3yVKLKGh7ZKbip6OFBJxDfVD18Nptg6eCprzxyKKJe2gpSm2OE0="
- GH_USER_NAME: "nuest"
- GH_REF: "github.com/nuest/ten-simple-rules-dockerfiles"
# GH token and email
- secure: "Np0h+wPn8j3pcP9A66dfPwjQ9IMhe0yc1vyfhL29qKd0S2NQWVzhujXrPbrA6PjbJrR8+u/pdYn3viFE8rWyMhSF8gLoOwrb9nNlpoQgZjp+B1d1Bb/JC6+uWmofNh+c2wlyCN71AeBhcGVzOTV9wkSuzi+HbxKgtxoIg65+VwDrvgIuCDnrsXOKOOcikWG6bY6c5umEXI+5EnLIyHQzcuFi7CLJlroiqVYzK1KNIytuQMr67IUAP0Z50WzGcdWzV/r/RaMoZpgZstPHieVoVicWR3czjDb2BJaJK536gtHLZ1WRiamcvB2gfTyFlerG91wERqIWzPvCFMn0acVaAG7fFavBd9FQg64/1kg2H4RSjKdMgkN+JR5zRtJXMz0LEFPPhSsKfB9a/x0/hFMPLws4mFIRENHlmKkbYQTWuQTiVNqP+oa9DFyrf0aZY+yYkEx2quDi5nb/qiXxudvbcLjjAjI28Xqyf93oIW74nEEQJrKGP0v3LlOzfVRBPmWZvMRwCBgmvqEh7Ia7DPvxxbP7ttY9mp+wGCLiEA/d55vazEdrv1n8FPoMGjGrFuh0Wmglh2NKLmkV2eaEh9RtGJ8ToZNHPffONjtCq0UVzL043EApJlslQ4FxSjFygjjCGGqqtyqA4S4d0nRSPAvpIY5qRhHQT34GFmY5Nz3XSS4="
- secure: "MMn8elsq9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