.gitlab-ci.yml 2.37 KB
Newer Older
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
1
2
3
4
5
6
stages: 
  - build_test
  - packages

r-build_test:
  stage: build_test
jfuser's avatar
jfuser committed
7
8
9
  tags:
    - "r-base-biosp"
  script:
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
10
    - "Rscript -e \"pkgbuild::compile_dll()\""
jfuser's avatar
jfuser committed
11
12
    - "Rscript -e \"roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace'))\""
    - "R CMD build . --resave-data"
jfuser's avatar
jfuser committed
13
    - "R CMD check --as-cran $(ls -rt landsepiDev_* |tail -1)"
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
14
15
16
  artifacts:
    paths:
      - "$(ls -rt landsepiDev_*.tar.gz |tail -1)"
jfuser's avatar
jfuser committed
17

Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
18
19
r-devel-build_test:
  stage: build_test
jfuser's avatar
jfuser committed
20
21
22
  tags:
    - "r-devel-biosp"  
  script:
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
23
    - "Rscript -e \"pkgbuild::compile_dll()\""
jfuser's avatar
jfuser committed
24
25
    - "Rscript -e \"roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace'))\""
    - "R CMD build . --resave-data"
jfuser's avatar
jfuser committed
26
    - "R CMD check --as-cran $(ls -rt landsepiDev_* |tail -1)"
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
27
28
29
  artifacts:
    paths:
      - "$(ls -rt landsepiDev_*.tar.gz |tail -1)"
30

Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
31
32
r-Mac-build_test:
  stage: build_test
33
34
35
36
  tags:
    - "Mac"  
    - "R"
  script:
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
37
    - "Rscript -e \"pkgbuild::compile_dll()\""
38
39
    - "Rscript -e \"roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace'))\""
    - "R CMD build . --resave-data"
jfuser's avatar
jfuser committed
40
    - "R CMD check --as-cran $(ls -rt landsepiDev_* |tail -1)"
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
41
42
43
  artifacts:
    paths:
      - "$(ls -rt landsepiDev_*.tar.gz |tail -1)"
jfuser's avatar
jfuser committed
44

Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
45
46
r-windows-build_test:
  stage: build_test
47
48
49
50
51
  tags:
    - "win10"
    - "R"
    - "binaries"
  script:
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
52
53
    - "Rscript -e \"pkgbuild::compile_dll()\""
    - "Rscript -e \"roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace'))\""
54
    - "R CMD build . --resave-data"
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
55
56
57
58
    - "R CMD check --as-cran $(ls -rt landsepiDev_* |tail -1)"
  artifacts:
    paths:
      - "$(ls -rt landsepiDev_*.tar.gz |tail -1)"
59

Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
60
61
release-r:
  stage: packages
62
  tags:
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
63
    - "r-base-biosp"
64
  script:
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
65
    - "echo \"Nothing to do\""
66
67
  artifacts:
    paths:
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
68
      - "$(ls -rt landsepiDev_* |tail -1)"
69
70
  only:
    - tags
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
71
72
  dependencies:
    - r-build_test
73

Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
74
75
release-win:
  stage: packages
76
  tags:
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
77
78
79
    - "win10"
    - "R"
    - "binaries"
80
  script:
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
81
    - "R CMD INSTALL --build --force-biarch $(ls -rt landsepiDev_*.tar.gz |tail -1)"
82
83
  artifacts:
    paths:
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
84
      - "$(ls -rt landsepiDev_*.zip |tail -1)"
85
86
  only:
    - tags
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
87
88
  dependencies:
    - r-windows-build_test
89

jfuser's avatar
jfuser committed
90
release-Mac:
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
91
  stage: packages
jfuser's avatar
jfuser committed
92
93
94
95
  tags:
    - "Mac"  
    - "R"
  script:
jfuser's avatar
jfuser committed
96
    - "R CMD INSTALL --build $(ls -rt landsepiDev_*.tar.gz |tail -1)"
jfuser's avatar
jfuser committed
97
98
  artifacts:
    paths:
jfuser's avatar
jfuser committed
99
      - "$(ls -rt landsepiDev_*.tgz | tail -1)"
jfuser's avatar
jfuser committed
100
101
  only:
    - tags
Jean-Loup Gaussen's avatar
Jean-Loup Gaussen committed
102
103
  dependencies:
    - r-Mac-build_test
jfuser's avatar
jfuser committed
104