Verified Commit b7d7f93f authored by Cody L Marquart's avatar Cody L Marquart
Browse files

Update CI steps

[build docker]
parent af0f5386
Pipeline #49440 passed with stages
in 58 minutes and 9 seconds
......@@ -13,6 +13,12 @@ variables:
REG_URL: "${CI_REGISTRY}/epistemic-analytics/qe-packages/ncoder"
# Templates
.check_condition: &check_condition
except:
refs:
- tags
variables:
- $CI_COMMIT_MESSAGE =~ /.*\[skip check\].*/
.build_definition: &build_template
before_script:
- export _R_CHECK_CRAN_INCOMING_=FALSE
......@@ -44,6 +50,7 @@ variables:
tags:
- docker
allow_failure: false
<<: *check_condition
# Check Steps
check:r-devel:
......@@ -85,6 +92,37 @@ check:r-winbuilder:
- docker
allow_failure: false
.rhub_definition: &rhub_definition
stage: check
image: $REG_URL/release:current
before_script:
- Rscript -e 'install.packages("rhub")'
script:
- |
Rscript -e "rhub::validate_email(email = \"${RHUB_EMAIL_ADDRESS}\", token = \"${RHUB_EMAIL_TOKEN}\");
checked <- rhub::check(platform = \"${RHUB_PLATFORM}\", show_status = TRUE);
checked\$cran_summary();
quit(status = ifelse(!checked\$.__enclos_env__\$private\$status_[[1]]\$status %in% c('error', 'warning'), 0, 1));"
only:
refs:
- master
variables:
- $RHUB_EMAIL_ADDRESS
- $RHUB_EMAIL_TOKEN
<<: *check_condition
check:r-hub-windows-old-release:
variables:
RHUB_PLATFORM: "windows-x86_64-oldrel"
<<: *rhub_definition
check:r-hub-windows-release:
variables:
RHUB_PLATFORM: "windows-x86_64-release"
<<: *rhub_definition
check:r-hub-windows-devel:
variables:
RHUB_PLATFORM: "windows-x86_64-devel"
<<: *rhub_definition
release:cran:
stage: release
image: egruw/r-ftp
......@@ -128,6 +166,10 @@ docs:build-site:
dependencies:
- test:r-release
.docker_variables: &docker_variables
DOCKER_HOST: tcp://localhost:2375/
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
.docker_definition: &docker_template
stage: docker
image: docker:19.03.1
......@@ -138,13 +180,14 @@ docs:build-site:
script:
- docker build -t $REG_URL/$TAG:current -f inst/docker/$PKG-$FILE inst/docker/
- docker push $REG_URL/$TAG:current
only:
variables:
- $CI_COMMIT_MESSAGE =~ /.*\[build docker\].*/ || $DOCKER_FORCE_REBUILD
docker:release:
variables:
TAG: "release"
FILE: "release"
DOCKER_HOST: tcp://localhost:2375/
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
<<: *docker_variables
only:
refs:
- branches
......@@ -157,52 +200,19 @@ docker:release:
<<: *docker_template
docker:release-test:
variables:
<<: *docker_variables
TAG: "release-test"
FILE: "release-test"
DOCKER_HOST: tcp://localhost:2375/
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
only:
refs:
- branches
changes:
- "inst/docker/$PKG-$FILE"
except:
refs:
- master
- tags
<<: *docker_template
docker:old-release:
variables:
<<: *docker_variables
TAG: "oldrelease"
FILE: "oldrelease"
DOCKER_HOST: tcp://localhost:2375/
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
only:
refs:
- branches
changes:
- "inst/docker/$PKG-$FILE"
except:
refs:
- master
- tags
<<: *docker_template
docker:devel:
variables:
<<: *docker_variables
TAG: "devel"
FILE: "devel"
DOCKER_HOST: tcp://localhost:2375/
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
only:
refs:
- branches
changes:
- "inst/docker/$PKG-$FILE"
except:
refs:
- master
- tags
<<: *docker_template
\ No newline at end of file
FROM rocker/r-ver:3.4.4
FROM rocker/r-ver:3.5.3
RUN apt-get update -y
RUN apt-get install -y apt-utils
......
FROM rocker/r-ver:latest
RUN apt-get update -y
RUN apt-get install -y apt-utils
RUN apt-get install -y libxml2 xml2
......
#FROM rocker/r-ver:latest
FROM registry.doit.wisc.edu/epistemic-analytics/qe-packages/ncoder/release:current
FROM rocker/r-ver:latest
RUN apt-get update -y
RUN apt-get install -y apt-utils
RUN apt-get install -y libxml2 xml2
RUN apt-get install -y libxml2-dev
RUN apt-get install -y libcurl4-openssl-dev libssh2-1-dev libssl-dev git
RUN apt-get install -y qpdf pandoc pandoc-citeproc openssh-client curl
RUN apt-cache search git
RUN apt-get install -y libgit2-dev
RUN R -e 'install.packages(c("roxygen2"), repos="http://cran.rstudio.com")'
RUN R -e 'install.packages(c("git2r","usethis","devtools","testthat"), repos="http://cran.rstudio.com")'
RUN R -e 'install.packages(c("R6","rhoR","cli"), repos="http://cran.rstudio.com")'
### Steps needed for testing the package and storing files
RUN R -e 'install.packages(c("covr", "DT"), repos="http://cran.rstudio.com")'
RUN R -e 'install.packages(c("aws.s3","aws.signature"), repos="http://cran.rstudio.com")'
RUN pwd
RUN R -e 'install.packages(c("fs"), repos="http://cran.rstudio.com")'
RUN pwd
RUN R -e 'install.packages(c("pkgdown"), repos="http://cran.rstudio.com")'
RUN R -e 'install.packages(c("aws.s3","aws.signature"), repos="http://cran.rstudio.com")'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment