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

ci: Add update of R packages for scheduled jobs

Refs #55
parent 26b0e4ed
Pipeline #12633 failed with stages
stages: stages:
- update_packages
- build - build
- tests - tests
...@@ -8,6 +9,15 @@ default: ...@@ -8,6 +9,15 @@ default:
- PATH=~/R/sources/R-${R_VERSION}/bin:$PATH - PATH=~/R/sources/R-${R_VERSION}/bin:$PATH
- rename "s/.${R_VERSION}.t/.t/" airGR_*.tar.gz - rename "s/.${R_VERSION}.t/.t/" airGR_*.tar.gz
.update_packages:
stage: update_packages
only:
refs:
- tags
- schedules
script:
- Rscript -e "update.packages(ask=FALSE, repos=\"http://cran.r-project.org\")"
.build: .build:
stage: build stage: build
script: script:
...@@ -32,6 +42,10 @@ default: ...@@ -32,6 +42,10 @@ default:
script: script:
- R CMD check --as-cran airGR_*.tar.gz - R CMD check --as-cran airGR_*.tar.gz
update_packages_patched:
variables:
R_VERSION: "patched"
extends: .update_packages
build_patched: build_patched:
variables: variables:
...@@ -48,6 +62,11 @@ check_as_cran_patched: ...@@ -48,6 +62,11 @@ check_as_cran_patched:
R_VERSION: "patched" R_VERSION: "patched"
extends: .check_as_cran extends: .check_as_cran
update_packages_devel:
variables:
R_VERSION: "devel"
extends: .update_packages
build_devel: build_devel:
only: only:
refs: refs:
...@@ -75,6 +94,11 @@ check_as_cran_devel: ...@@ -75,6 +94,11 @@ check_as_cran_devel:
R_VERSION: "devel" R_VERSION: "devel"
extends: .check_as_cran extends: .check_as_cran
update_packages_oldrel:
variables:
R_VERSION: "oldrel"
extends: .update_packages
build_oldrel: build_oldrel:
only: only:
refs: refs:
......
Markdown is supported
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