Skip to content
Snippets Groups Projects
Commit 393b0653 authored by Carl Boettiger's avatar Carl Boettiger
Browse files

have circle run R installation tests

parent 0fca83b3
No related branches found
No related tags found
No related merge requests found
......@@ -7,4 +7,4 @@ machine:
test:
override:
- make all
- docker run --rm -ti -v $(pwd):/tmp -w /tmp rocker/verse ./tests.sh
tests.sh 0 → 100755
#!/bin/bash
R_VERSION=3.3.2
R_HOME=/usr/local/lib/R
mkdir tmp
cd tmp
#apt-get update && apt-get -y install curl \
#curl -k -O https://cran.r-project.org/src/base/R-3/R-${R_VERSION}.tar.gz
wget --no-check-certificate https://cran.r-project.org/src/base/R-3/R-${R_VERSION}.tar.gz
tar -xf R-${R_VERSION}.tar.gz \
&& cp -r R-${R_VERSION}/tests ${R_HOME}/tests
echo \
'Sys.setenv(LC_COLLATE = "C", LC_TIME = "C", LANGUAGE = "en")
library("tools")
testInstalledBasic("both")
testInstalledPackages(scope = "base")' > test.R
R --vanilla -e 'source("test.R")'
rm -rf tmp ${R_HOME}/tests
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment