diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dd5d2692b77125c1869be5706c66b3f007ff44da..5019ac1352059b7b2b59b477057deee4cc35084f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,31 +1,14 @@ 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: