Skip to content

Commit

Permalink
Add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jul 27, 2016
1 parent 01a6dce commit 2baa950
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ man-roxygen
cran-comments.md
^src/jq/.*\.o$
^src/libjq.a$
^docker$
22 changes: 22 additions & 0 deletions docker/r-devel-san/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM rocker/r-devel-san

ENV UBSAN_OPTIONS print_stacktrace=1
ENV ASAN_OPTIONS malloc_context_size=10:fast_unwind_on_malloc=false

RUN apt-get -qq update \
&& apt-get -qq dist-upgrade -y \
&& apt-get -qq install git pandoc pandoc-citeproc libssl-dev libcurl4-openssl-dev -y \
&& RDscript -e 'install.packages("jqr", dependencies = TRUE, quiet = TRUE)'


RUN git clone https://github.com/ropensci/jqr \
&& RD CMD build jqr --no-build-vignettes \
&& RD CMD INSTALL jqr_*.tar.gz --install-tests

RUN RDscript -e 'sessionInfo()'

RUN RDscript -e 'library(jqr); testthat::test_dir("jqr/tests/testthat")' || true

RUN RDscript -e 'library(jqr); testthat::test_examples("jqr/man")'|| true

RUN RD CMD check jqr*.tar.gz

0 comments on commit 2baa950

Please sign in to comment.