-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
41 lines (33 loc) · 1018 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
37
38
39
40
41
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: R
sudo: false
cache: packages
pandoc_version: 1.19.2.1
matrix:
include:
- os: osx
osx_image: xcode10
before_install:
- curl -fLo /tmp/gfortran61.dmg https://github.com/fxcoudert/gfortran-for-macOS/releases/download/6.1/gfortran-6.1-ElCapitan.dmg
- os: linux
before_install:
- sudo timedatectl set-timezone Asia/Taipei # Set timezone to Taiwan
r_github_packages:
- r-lib/covr
- r-lib/pkgdown
after_success:
- Rscript -e 'devtools::check(manual = TRUE)'
# - Rscript -e 'covr::codecov()'
before_deploy:
- Rscript build_site.R
- cp -r ./man ./docs
# deploy docs/ and master branch to branch 'gh-pages'
deploy:
- provider: pages # Deploy master/docs to branch gh-pages
skip-cleanup: true
github-token: $GH_TOKEN
keep-history: false
local-dir: docs # Web output directory
on:
branch: master
condition: $TRAVIS_OS_NAME = linux