.gitlab-ci.yml 1.46 KB
Newer Older
jfuser's avatar
jfuser committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package:
  tags:
    - "r-base-biosp"
  script:
    - "Rscript -e \"roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace'))\""
    - "R CMD build . --resave-data"
    - "R CMD check --as-cran $(ls -rt landsepi_* |tail -1)"

package-devel:
  tags:
    - "r-devel-biosp"  
  script:
    - "Rscript -e \"roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace'))\""
    - "R CMD build . --resave-data"
    - "R CMD check --as-cran $(ls -rt landsepi_* |tail -1)"

17
18
19
20
21
22
package-windows:
  tags:
    - "win10"
    - "R"
    - "binaries"
  script:
jfuser's avatar
jfuser committed
23
    - "Rscript -e \"roxygen2::roxygenize('.',roclets=c('rd','collate','namespace'))\""
24
    - "R CMD build . --resave-data"
jfuser's avatar
jfuser committed
25
    - "R CMD INSTALL --build --force-biarch $(ls -rt landsepi_*.tar.gz |tail -1)"
26
27

release-win:
jfuser's avatar
jfuser committed
28
29
  variables:
    CI_DEBUG_TRACE: "true"
30
31
32
33
34
35
36
  tags:
    - "win10"
    - "R"
    - "binaries"
  script:
    - "Rscript -e \"roxygen2::roxygenize('.',roclets=c('rd','collate','namespace'))\""
    - "R CMD build . --resave-data"
jfuser's avatar
jfuser committed
37
    - "R CMD INSTALL --build --force-biarch $(ls -rt landsepi_*.tar.gz |tail -1)"
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
  artifacts:
    paths:
      - "$(ls -rt landsepi_*.zip |tail -1)"
  only:
    - tags

release-package:
  tags:
    - "r-base-biosp"
  script:
    - "Rscript -e \"roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace'))\""
    - "R CMD build . --resave-data"
    - "R CMD check --as-cran $(ls -rt landsepi_* |tail -1)"
  artifacts:
    paths:
      - "$(ls -rt landsepi_* |tail -1)"
  only:
    - tags