forked from ropensci/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (46 loc) · 1.05 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
# 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
bioc_packages:
- graph
# 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
- pkgdown
- readxl
r_github_packages:
- r-lib/covr
before_script:
- 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