stages: - build - tests default: before_script: - echo "setwd(\"$(pwd)\")" > .Rprofile .build: stage: build script: - cd .. - echo "setwd(\"$(pwd)\")" > .Rprofile - ~/R/R-${R_VERSION}/bin/R CMD build airgr - mv *.tar.gz airgr/ artifacts: untracked: true expire_in: 1 week .check_not_cran: stage: tests variables: NOT_CRAN: "true" script: - ~/R/R-${R_VERSION}/bin/R CMD check airGR_*.tar.gz .check_as_cran: stage: tests script: - ~/R/R-${R_VERSION}/bin/R CMD check --as-cran airGR_*.tar.gz build_patched: variables: R_VERSION: "patched" extends: .build check_not_cran_patched: variables: R_VERSION: "patched" extends: .check_not_cran check_as_cran_patched: variables: 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: - tags - schedules variables: R_VERSION: "devel" extends: .check_not_cran check_as_cran_devel: only: refs: - tags - schedules variables: 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: - tags - schedules variables: R_VERSION: "oldrel" extends: .check_not_cran check_as_cran_oldrel: only: refs: - tags - schedules variables: R_VERSION: "oldrel" extends: .check_as_cran