11# ----------------------------------------------------------------
2- # Travis-CI Configuration for R Packages
3- # https://docs.travis-ci.com/user/languages/r
2+ # Travis-CI configuration for R packages
3+ #
4+ # REFERENCES:
5+ # * Travis CI: https://docs.travis-ci.com/user/languages/r
6+ # * covr: https://github.com/jimhester/covr
7+ #
8+ # YAML validated using http://www.yamllint.com/
49# ----------------------------------------------------------------
510language : r
611sudo : false
@@ -22,9 +27,12 @@ matrix:
2227 - os : linux
2328 r : devel
2429 env :
25- - R_KEEP_PKG_SOURCE=yes
26- - _R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_=true
27- - _R_S3_METHOD_LOOKUP_USE_TOPENV_AS_DEFENV_=true
30+ - R_KEEP_PKG_SOURCE=yes
31+ - _R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_=true
32+ - _R_S3_METHOD_LOOKUP_USE_TOPENV_AS_DEFENV_=true
33+ - _R_CHECK_CONNECTIONS_LEFT_OPEN_=true
34+ - _R_CHECK_LENGTH_1_CONDITION_=true
35+ - _R_CHECK_LENGTH_1_LOGIC2_=true
2836 - os : linux
2937 r : devel
3038 r_github_packages :
@@ -33,9 +41,6 @@ matrix:
3341 - NB='w/ batchtools devel' # # Just a label
3442 - os : osx
3543 r : oldrel
36- before_install :
37- - Rscript -e 'c(physical = parallel::detectCores(logical = FALSE), logical = parallel::detectCores())'
38- - Rscript -e 'install.packages(c("future", "future.apply"), type = "source")'
3944 - os : osx
4045 r : release
4146 - os : linux
@@ -46,14 +51,6 @@ matrix:
4651 after_success :
4752 - Rscript -e 'covr::codecov(quiet=FALSE)'
4853 env : NB='w/ covr' # # Just a label
49- - os : linux
50- r : release
51- r_packages :
52- - lintr
53- r_check_args : --no-codoc --no-examples --no-tests --ignore-vignettes
54- after_success :
55- - Rscript -e 'library(lintr); lint_package(linters = with_defaults(commented_code_linter = NULL, closed_curly_linter = closed_curly_linter(allow_single_line = TRUE), open_curly_linter = open_curly_linter(allow_single_line = TRUE)))'
56- env : NB='w/ lintr' # # Just a label
5754
5855before_install :
5956 - Rscript -e 'c(physical = parallel::detectCores(logical = FALSE), logical = parallel::detectCores())'
0 commit comments