forked from ropensci/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (46 loc) · 1.13 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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: R
sudo: false
cache: packages
repos:
CRAN: https://cloud.r-project.org
# Added manually by Will Landau
branches:
except:
- gh-pages
warnings_are_errors: true
addons:
apt:
packages:
- libudunits2-dev
- libzmq3-dev
r_packages:
- clustermq
- downloader
- forcats
- ggplot2
- lintr
- readxl
r_github_packages:
- r-lib/covr
- r-lib/pkgdown
before_script:
- R -q -e 'install.packages("remotes")'
- R -q -e 'remotes::install_github("ropensci/rotemplate")'
- chmod +x ./pkgdown.sh
# From Jim Hester, for avoiding timeouts
script:
- |
R CMD build .
R CMD INSTALL . # Expose the *.so file for pkgdown.R.
Rscript pkgdown.R
R CMD INSTALL drake*tar.gz
travis_wait 20 R CMD check drake*tar.gz --no-tests
travis_wait 20 Rscript -e 'cov <- covr::package_coverage(quiet = FALSE)' -e 'print(cov)' -e 'covr::codecov(coverage = cov)'
after_success:
- ./pkgdown.sh
- Rscript -e 'lintr::lint_package()'
after_failure:
- find *Rcheck -name '*fail' -print -exec cat '{}' \;
env:
- NOT_CRAN = true