.gitlab-ci.yml 1.54 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
    - ~/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"
40
  extends: .check_not_cran
41
42
43
44

check_as_cran_patched:
  variables:
    R_VERSION: "patched"
45
  extends: .check_as_cran
46
47
48
49
50
51
52
53
54
55
56

build_devel:
  only:
    refs:
      - tags
      - schedules
  variables:
    R_VERSION: "devel"
  extends: .build

check_not_cran_devel:
57
  only:
58
59
60
61
62
    refs:
      - tags
      - schedules
  variables:
    R_VERSION: "devel"
63
  extends: .check_not_cran
64
65

check_as_cran_devel:
66
  only:
67
68
69
70
71
    refs:
      - tags
      - schedules
  variables:
    R_VERSION: "devel"
72
  extends: .check_as_cran
73
74
75
76
77
78
79
80
81
82
83

build_oldrel:
  only:
    refs:
      - tags
      - schedules
  variables:
    R_VERSION: "oldrel"
  extends: .build

check_not_cran_oldrel:
84
  only:
85
86
87
88
89
    refs:
      - tags
      - schedules
  variables:
    R_VERSION: "oldrel"
90
  extends: .check_not_cran
91
92

check_as_cran_oldrel:
93
  only:
94
95
96
97
98
    refs:
      - tags
      - schedules
  variables:
    R_VERSION: "oldrel"
99
  extends: .check_as_cran