Commit b0ad6d6f authored by Dorchies David's avatar Dorchies David
Browse files

fix(ci): libPaths issue with R v4.0.5

Showing with 2 additions and 42 deletions
+2 -42
stages:
- build
- check
- regression
- revdepcheck
variables:
R_LIBS_USER: "$CI_PROJECT_DIR/ci/lib"
default:
before_script:
- echo "setwd(\"$(pwd)\")" > .Rprofile
- echo ".libPaths <- c(Sys.getenv(\"R_LIBS_USER\"), .libPaths())" >> .Rprofile
- PATH=~/R/sources/R-${R_VERSION}/bin:$PATH
- rename "s/${R_VERSION}.airGR/airGR/" *.tar.gz
.build:
stage: build
script:
- cd ..
- echo "setwd(\"$(pwd)\")" > .Rprofile
- R -e 'Sys.getenv()'
- R -e '.libPaths()'
- R -e 'utils::install.packages("usethis", repo = "https://cloud.r-project.org/")'
- R -e 'remotes::install_deps(pkgdir = "airgr", dep = T)'
- R CMD build airgr
artifacts:
untracked: true
expire_in: 1 week
- R -e 'remotes::install_deps(dep = T)'
.regression:
stage: regression
......@@ -50,11 +33,6 @@ default:
NOT_CRAN: "false"
extends: .check
build_patched:
variables:
R_VERSION: "patched"
extends: .build
regression_patched:
variables:
R_VERSION: "patched"
......@@ -86,15 +64,6 @@ check_as_cran_patched:
R_VERSION: "patched"
extends: .check_as_cran
build_devel:
only:
refs:
- tags
- schedules
variables:
R_VERSION: "devel"
extends: .build
check_not_cran_devel:
only:
refs:
......@@ -113,15 +82,6 @@ check_as_cran_devel:
R_VERSION: "devel"
extends: .check_as_cran
build_oldrel:
only:
refs:
- tags
- schedules
variables:
R_VERSION: "oldrel"
extends: .build
check_not_cran_oldrel:
only:
refs:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment