forked from IQSS/datafest-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (42 loc) · 1.18 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
48
49
50
51
language: r
cache:
packages: yes
directories:
- $TRAVIS_BUILD_DIR/_bookdown_files
r_packages:
- bookdown
pandoc_version: 1.19.2.1
sudo: false
before_script:
- chmod +x ./_build.sh
# - chmod +x ./_deploy.sh
script:
- ./_build.sh
# - ./_deploy.sh
notifications:
email: false
#before_deploy:
# Set up git user name and tag this commit
# - git config --local user.name "stevenworthington"
# - git config --local user.email "[email protected]"
# - export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
# - git tag $TRAVIS_TAG
deploy:
provider: pages # Specify the gh-pages deployment method
skip_cleanup: true # Don't remove files
local_dir: docs # Deploy the docs folder
github_token: $GITHUB_PAT # Set in travis-ci.org dashboard
on: # set build to deploy only when conditions are met
branch: master
target_branch: gh-pages
#deploy:
# provider: releases
# skip_cleanup: true
# api_key: $GITHUB_PAT
# file:
# - "dss-rbuild.pdf"
# - "dss-rbuild.tex"
# on:
# branch: gh-pages
# tags: false
# overwrite: true