-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
80 lines (71 loc) · 2.35 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: R
jobs:
include:
- name: "Linux R release" # Linux R release
os: linux
language: R
r: release
cache:
directories:
- /home/travis/.linuxbrew
- $HOME/.local/share/renv # global renv cache in linux (not used)
- $TRAVIS_BUILD_DIR/renv/library # local renv cache
- name: "Linux R devel" # Linux R release
os: linux
language: R
r: devel
cache:
directories:
- /home/travis/.linuxbrew
- $HOME/.local/share/renv # global renv cache in linux (not used)
- $TRAVIS_BUILD_DIR/renv/library # local renv cache
- name: "macOS R release" # MacOS R release
os: osx
language: R
r: release
r_build_args: '--no-build-vignettes'
r_check_args: '--ignore-vignettes'
env:
- RENV_PATHS_ROOT="$HOME/renv/cache"
# before_install:
# - brew update
# - brew install ccache
cache:
ccache: true
directories:
- $HOME/Library/Caches/Homebrew
- /usr/local/Homebrew
- /usr/local/lib/R
- $RENV_PATHS_ROOT # global renv cache in MacOS (not used)
- $TRAVIS_BUILD_DIR/renv/library # local renv cache
before_cache:
- brew cleanup
- find /usr/local/Homebrew \! -regex ".+\.git.+" -delete
- name: "macOS R devel" # MacOS R release
os: osx
language: R
r: devel
r_build_args: '--no-build-vignettes'
r_check_args: '--ignore-vignettes'
env:
- RENV_PATHS_ROOT="$HOME/renv/cache"
# before_install:
# - brew update
# - brew install ccache
cache:
ccache: true
directories:
- $HOME/Library/Caches/Homebrew
- /usr/local/Homebrew
- /usr/local/lib/R
- $RENV_PATHS_ROOT # global renv cache in MacOS (not used)
- $TRAVIS_BUILD_DIR/renv/library # local renv cache
before_cache:
- brew cleanup
- find /usr/local/Homebrew \! -regex ".+\.git.+" -delete
install:
- Rscript -e "if (!requireNamespace('renv', quietly = TRUE)) install.packages('renv')"
- Rscript -e "renv::restore()"
after_success:
- Rscript -e 'covr::codecov(token = "549179f1-fef6-4a05-be11-e2b5029df6a0", branch = "master")'