.gitlab-ci.yml 2.68 KB
Newer Older
jfuser's avatar
jfuser committed
1
2
3
4
5
6
7
stages:
  - build
  - test
  - packages

r-build:
  stage: build
jfuser's avatar
jfuser committed
8
9
10
11
12
  tags:
    - "r-base-biosp"
  script:
    - "Rscript -e \"roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace'))\""
    - "R CMD build . --resave-data"
jfuser's avatar
jfuser committed
13
14
15
16
17
18
19
20
21
  artifacts:
    paths:
      - "$(ls -rt landsepi_*.tar.gz |tail -1)"

r-test:
  stage: test
  tags:
    - "r-base-biosp"
  script:
Loup Rimbaud's avatar
Loup Rimbaud committed
22
    - "R CMD check --as-cran $(ls -rt landsepi_* |tail -1)"
jfuser's avatar
jfuser committed
23
24
25
26
27
  artifacts:
    paths:
      - "$(ls -rt landsepi_*.tar.gz |tail -1)"
  dependencies:
    - r-build
jfuser's avatar
jfuser committed
28

jfuser's avatar
jfuser committed
29
30
r-devel-build:
  stage: build
jfuser's avatar
jfuser committed
31
32
33
34
35
  tags:
    - "r-devel-biosp"  
  script:
    - "Rscript -e \"roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace'))\""
    - "R CMD build . --resave-data"
jfuser's avatar
jfuser committed
36
37
38
39
40
41
42
43
44
  artifacts:
    paths:
      - "$(ls -rt landsepi_*.tar.gz |tail -1)"

r-devel-test:
  stage: test
  tags:
    - "r-devel-biosp"  
  script:
Loup Rimbaud's avatar
Loup Rimbaud committed
45
    - "R CMD check --as-cran $(ls -rt landsepi_* |tail -1)"
jfuser's avatar
jfuser committed
46
47
  dependencies:
    - r-devel-build
48

jfuser's avatar
jfuser committed
49
50
r-Mac-build:
  stage: build
51
52
53
54
55
56
  tags:
    - "Mac"  
    - "R"
  script:
    - "Rscript -e \"roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace'))\""
    - "R CMD build . --resave-data"
jfuser's avatar
jfuser committed
57
  artifacts:
jfuser's avatar
up    
jfuser committed
58
    paths:
jfuser's avatar
jfuser committed
59
60
61
62
63
64
65
66
      - "$(ls -rt landsepi_*.tar.gz |tail -1)"

r-Mac-test:
  stage: test
  tags:
    - "Mac"  
    - "R"
  script:
Loup Rimbaud's avatar
Loup Rimbaud committed
67
    - "R CMD check --as-cran $(ls -rt landsepi_* |tail -1)"
jfuser's avatar
jfuser committed
68
69
70
  dependencies:
    - r-Mac-build
  artifacts:
jfuser's avatar
up    
jfuser committed
71
    paths:
jfuser's avatar
jfuser committed
72
      - "$(ls -rt landsepi_*.tar.gz |tail -1)"
jfuser's avatar
jfuser committed
73

jfuser's avatar
jfuser committed
74
75
r-windows-build:
  stage: build
76
77
78
79
80
  tags:
    - "win10"
    - "R"
    - "binaries"
  script:
jfuser's avatar
jfuser committed
81
    - "Rscript -e \"roxygen2::roxygenize('.',roclets=c('rd','collate','namespace'))\""
82
    - "R CMD build . --resave-data"
jfuser's avatar
jfuser committed
83
  artifacts:
jfuser's avatar
up    
jfuser committed
84
    paths:
jfuser's avatar
jfuser committed
85
86
87
88
89
90
91
92
93
94
95
96
97
      - "$(ls -rt landsepi_*.tar.gz |tail -1)"

r-windows-test:
  stage: test
  tags:
    - "win10"
    - "R"
    - "binaries"
  script:
    - "R CMD check --as-cran $(ls -rt landsepi_* |tail -1)"
  dependencies:
    - r-windows-build
  artifacts:
jfuser's avatar
up    
jfuser committed
98
    paths:
jfuser's avatar
jfuser committed
99
      - "$(ls -rt landsepi_*.tar.gz |tail -1)"
100
101

release-win:
jfuser's avatar
jfuser committed
102
  stage: packages
103
104
105
106
107
  tags:
    - "win10"
    - "R"
    - "binaries"
  script:
Loup Rimbaud's avatar
Loup Rimbaud committed
108
    - "R CMD INSTALL --build --force-biarch $(ls -rt landsepi_*.tar.gz |tail -1)"
109
110
  artifacts:
    paths:
Loup Rimbaud's avatar
Loup Rimbaud committed
111
      - "$(ls -rt landsepi_*.zip |tail -1)"
112
113
  only:
    - tags
jfuser's avatar
jfuser committed
114
115
  dependencies:
    - r-windows-test
116
117

release-package:
jfuser's avatar
jfuser committed
118
  stage: packages
119
120
121
122
  tags:
    - "r-base-biosp"
  artifacts:
    paths:
Loup Rimbaud's avatar
Loup Rimbaud committed
123
      - "$(ls -rt landsepi_* |tail -1)"
124
125
  only:
    - tags
jfuser's avatar
jfuser committed
126
127
  dependencies:
    - r-test
128

jfuser's avatar
jfuser committed
129
release-Mac:
jfuser's avatar
jfuser committed
130
  stage: packages
jfuser's avatar
jfuser committed
131
132
133
134
  tags:
    - "Mac"  
    - "R"
  script:
Loup Rimbaud's avatar
Loup Rimbaud committed
135
    - "R CMD INSTALL --build $(ls -rt landsepi_*.tar.gz |tail -1)"
jfuser's avatar
jfuser committed
136
137
  artifacts:
    paths:
Loup Rimbaud's avatar
Loup Rimbaud committed
138
      - "$(ls -rt landsepi_*.tgz | tail -1)"
jfuser's avatar
jfuser committed
139
140
  only:
    - tags
jfuser's avatar
jfuser committed
141
142
  dependencies:
    - r-Mac-test
jfuser's avatar
jfuser committed
143