Commit 366087ce authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

ci(yml): add .gitlab-ci.yml to run pipelines

Refs #29
parent d275b6b5
Pipeline #17910 canceled with stages
stages:
- update_packages
- build
- tests
default:
before_script:
- echo "setwd(\"$(pwd)\")" > .Rprofile
- PATH=~/R/sources/R-${R_VERSION}/bin:$PATH
- rename "s/${R_VERSION}.airGRteaching/airGRteaching/" *.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:
stage: build
script:
- cd ..
- echo "setwd(\"$(pwd)\")" > .Rprofile
- R CMD build airGRteaching
- rename "s/airGRteaching/${R_VERSION}.airGRteaching/" airGRteaching_*.tar.gz
- mv *.tar.gz airGRteaching/
artifacts:
untracked: true
expire_in: 1 week
.check_as_cran:
stage: tests
script:
- R CMD check --as-cran airGRteaching_*.tar.gz
build_patched:
variables:
R_VERSION: "patched"
extends: .build
build_devel:
only:
refs:
- tags
- schedules
variables:
R_VERSION: "devel"
extends: .build
build_oldrel:
only:
refs:
- tags
- schedules
variables:
R_VERSION: "oldrel"
extends: .build
check_as_cran_patched:
variables:
R_VERSION: "patched"
extends: .check_as_cran
check_as_cran_devel:
only:
refs:
- tags
- schedules
variables:
R_VERSION: "devel"
extends: .check_as_cran
check_as_cran_oldrel:
only:
refs:
- tags
- schedules
variables:
R_VERSION: "oldrel"
extends: .check_as_cran
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