.gitlab-ci.yml 523 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
stages:
  - build
  - tests

build:
  stage: build
  script:
    - cd ..
    - echo "setwd(\"$(pwd)\")" > .Rprofile
    - R CMD build airgr
    - mv *.tar.gz airgr/
  artifacts:
    untracked: true
    expire_in: 1 week

check_not_cran:
  stage: tests
  script:
    - echo "setwd(\"$(pwd)\")" > .Rprofile
20
    - echo "Sys.setenv(NOT_CRAN = \"true\")" >> .Rprofile
21
    - R CMD check airGR_*.tar.gz
22
23
24
25
26
27

check_as_cran:
  stage: tests
  script:
    - echo "setwd(\"$(pwd)\")" > .Rprofile
    - R CMD check --as-cran airGR_*.tar.gz