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

package-devel:
  tags:
    - "r-devel-biosp"  
  script:
    - "Rscript -e \"roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace'))\""
    - "R CMD build . --resave-data"
15
    - "R CMD check --as-cran $(ls -rt landsepi_dev_* |tail -1)"
16
17
18
19
20
21
22
23

package-Mac-base:
  tags:
    - "Mac"  
    - "R"
  script:
    - "Rscript -e \"roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace'))\""
    - "R CMD build . --resave-data"
24
    - "R CMD check --as-cran $(ls -rt landsepi_dev_* |tail -1)"
jfuser's avatar
jfuser committed
25

26
27
28
29
30
31
package-windows:
  tags:
    - "win10"
    - "R"
    - "binaries"
  script:
jfuser's avatar
jfuser committed
32
    - "Rscript -e \"roxygen2::roxygenize('.',roclets=c('rd','collate','namespace'))\""
33
    - "R CMD build . --resave-data"
34
    - "R CMD INSTALL --build --force-biarch $(ls -rt landsepi_dev_*.tar.gz |tail -1)"
35
36

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

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

jfuser's avatar
jfuser committed
66
67
68
69
70
71
72
release-Mac:
  tags:
    - "Mac"  
    - "R"
  script:
    - "Rscript -e \"roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace'))\""
    - "R CMD build . --resave-data"
73
    - "R CMD INSTALL --build $(ls -rt landsepi_dev_*.tar.gz |tail -1)"
jfuser's avatar
jfuser committed
74
75
  artifacts:
    paths:
76
      - "$(ls -rt landsepi_dev_*.tgz | tail -1)"
jfuser's avatar
jfuser committed
77
78
79
80
  only:
    - tags