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

5
6
7
default:
  before_script:
    - echo "setwd(\"$(pwd)\")" > .Rprofile
8
    - PATH=~/R/sources/R-${R_VERSION}/bin:$PATH
9
10

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

21
.check_not_cran:
22
  stage: tests
23
24
  variables:
    NOT_CRAN: "true"
25
  script:
26
    - R CMD check airGR_*.tar.gz
27

28
.check_as_cran:
29
30
  stage: tests
  script:
31
    - R CMD check --as-cran airGR_*.tar.gz
32
33
34
35
36
37
38
39
40

build_patched:
  variables:
    R_VERSION: "patched"
  extends: .build

check_not_cran_patched:
  variables:
    R_VERSION: "patched"
41
  extends: .check_not_cran
42
43
44
45

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

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

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

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

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

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

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