.gitlab-ci.yml 1.63 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
    - rename "s/.${R_VERSION}.t/.t/" airGR_*.tar.gz
10
11

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

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

30
.check_as_cran:
31
32
  stage: tests
  script:
33
    - R CMD check --as-cran airGR_*.tar.gz
34

35

36
37
38
39
40
41
42
43
build_patched:
  variables:
    R_VERSION: "patched"
  extends: .build

check_not_cran_patched:
  variables:
    R_VERSION: "patched"
44
  extends: .check_not_cran
45
46
47
48

check_as_cran_patched:
  variables:
    R_VERSION: "patched"
49
  extends: .check_as_cran
50
51
52
53
54
55
56
57
58
59
60

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

check_not_cran_devel:
61
  only:
62
63
64
65
66
    refs:
      - tags
      - schedules
  variables:
    R_VERSION: "devel"
67
  extends: .check_not_cran
68
69

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

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

check_not_cran_oldrel:
88
  only:
89
90
91
92
93
    refs:
      - tags
      - schedules
  variables:
    R_VERSION: "oldrel"
94
  extends: .check_not_cran
95
96

check_as_cran_oldrel:
97
  only:
98
99
100
101
102
    refs:
      - tags
      - schedules
  variables:
    R_VERSION: "oldrel"
103
  extends: .check_as_cran