ropensci / redland-bindings

Redland librdf language bindings
http://librdf.org/bindings/
Other
17 stars 3 forks source link

Revive Docker scripts to test builds against R, R-devel #69

Open gothub opened 6 years ago

gothub commented 6 years ago

Update R/Dockerfile to build and verify the package. Add other scripts and Dockerfiles to build and test R and R-devel against CRAN checks.

cboettig commented 6 years ago

@gothub fwiw, they aren't minimal images for sure, but the existing rocker/verse images should be sufficient to pass CRAN checks, e.g. running from the R package dir in this repo (R/redland)

on devel:

 docker run --rm -ti -v $(pwd):/data -w /data rocker/verse:devel R -e "devtools::check()"

on latest:

 docker run --rm -ti -v $(pwd):/data -w /data rocker/verse:latest R  -e "devtools::check()"
gothub commented 6 years ago

@cboettig thx, that looks great.

cboettig commented 6 years ago

oh, fwiw, there's also ropensci/rdflib, https://hub.docker.com/r/ropensci/rdflib/~/dockerfile/ , which builds the redland C library from source instead of pulling in librdf0-dev. This allows it to pick up the support for some of the backends that need to be linked at compile-time I think (postgres, virtuoso, etc).

I use this image to check those backends are working in rdflib by running on circle-ci: see https://github.com/ropensci/rdflib/blob/master/.circleci/config.yml