THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

CI: modernize

feature/c
Henrik Bengtsson 2 years ago
parent
commit
697411e7b3
  1. 25
      .travis.yml
  2. 24
      appveyor.yml

25
.travis.yml

@ -5,7 +5,7 @@
# * Travis CI: https://docs.travis-ci.com/user/languages/r
# * covr: https://github.com/jimhester/covr
#
# Validate your .travis.yml file at http://lint.travis-ci.org/
# YAML validated using http://www.yamllint.com/
#----------------------------------------------------------------
language: r
sudo: false
@ -20,24 +20,31 @@ matrix:
r: oldrel
- os: linux
r: release
r_github_packages:
- jimhester/covr
- jimhester/lintr
after_success:
- Rscript -e 'covr::codecov(quiet = FALSE)'
- 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)))'
env: NB='w/ covr & lintr' ## Just a label
- os: linux
r: devel
env:
- R_KEEP_PKG_SOURCE=yes
- _R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_=true
- _R_S3_METHOD_LOOKUP_USE_TOPENV_AS_DEFENV_=true
- _R_CHECK_CONNECTIONS_LEFT_OPEN_=true
- _R_CHECK_LENGTH_1_CONDITION_=true
- _R_CHECK_LENGTH_1_LOGIC2_=true
- os: osx
r: oldrel
- os: osx
r: release
- os: linux
r: release
r_packages:
- covr
r_check_args: --no-codoc --no-examples --no-tests --ignore-vignettes
after_success:
- Rscript -e 'covr::codecov(quiet=FALSE)'
env: NB='w/ covr' ## Just a label
before_install:
- Rscript -e 'c(physical = parallel::detectCores(logical = FALSE), logical = parallel::detectCores())'
notifications:
email:
on_success: change

24
appveyor.yml

@ -1,12 +1,7 @@
#----------------------------------------------------------------
# AppVeyor configuration for R packages
#
# REFERENCES:
# * AppVeyor CI: https://ci.appveyor.com/
# * r-appveyor: https://github.com/krlmlr/r-appveyor
#
# Validate your .appveyor.yml file at
# https://ci.appveyor.com/tools/validate-yaml
# AppVeyor CI for R Packages
# https://github.com/krlmlr/r-appveyor
# Validator: https://ci.appveyor.com/tools/validate-yaml
#----------------------------------------------------------------
environment:
_R_CHECK_FORCE_SUGGESTS_: false
@ -21,19 +16,18 @@ environment:
- R_VERSION: release
R_ARCH: x64
# DO NOT CHANGE the "init" and "install" sections below
# Download script file from GitHub
init:
ps: |
$ErrorActionPreference = "Stop"
Invoke-WebRequest http://raw.github.com/HenrikBengtsson/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
Invoke-WebRequest https://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
Import-Module '..\appveyor-tool.ps1'
install:
ps: Bootstrap
ps: |
Bootstrap
# Adapt as necessary starting from here
cache:
- C:\RLibrary -> appveyor.yml
build_script:
- echo Current directory=%CD%

Loading…
Cancel
Save