.gitlab-ci.yml 1.52 KB
Newer Older
1
2
3
4
stages:
  - build
  - tests

5
6
7
8
9
default:
  before_script:
    - echo "setwd(\"$(pwd)\")" > .Rprofile

.build:
10
11
12
13
  stage: build
  script:
    - cd ..
    - echo "setwd(\"$(pwd)\")" > .Rprofile
14
    - ~/R/R-${R_VERSION}/bin/R CMD build airgr
15
16
17
18
19
    - mv *.tar.gz airgr/
  artifacts:
    untracked: true
    expire_in: 1 week

20
.check_not_cran:
21
  stage: tests
22
23
  variables:
    NOT_CRAN: "true"
24
  script:
25
    - ~/R/R-${R_VERSION}/bin/R CMD check airGR_*.tar.gz
26

27
.check_as_cran:
28
29
  stage: tests
  script:
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
    - ~/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:
    refs:
      - tags
      - schedules
  variables:
    R_VERSION: "devel"
    extends: .check_not_cran

check_as_cran_devel:
    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:
    refs:
      - tags
      - schedules
  variables:
    R_VERSION: "oldrel"
    extends: .check_not_cran

check_as_cran_oldrel:
    refs:
      - tags
      - schedules
  variables:
    R_VERSION: "oldrel"
    extends: .check_as_cran