.gitlab-ci.yml 1.7 KB
Newer Older
jfuser's avatar
jfuser committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)"
16
17
18
19
20
21
22
23
24

package-Mac-base:
  tags:
    - "Mac"  
    - "R"
  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)"
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"
jfuser's avatar
jfuser committed
34
    - "R CMD INSTALL --build --force-biarch $(ls -rt landsepi_*.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"
jfuser's avatar
jfuser committed
46
    - "R CMD INSTALL --build --force-biarch $(ls -rt landsepi_*.tar.gz |tail -1)"
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
  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