From 22f129f7b1c300097b2d77a63448f59852536ed4 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Wed, 30 Jan 2019 10:51:56 -0600 Subject: [PATCH] tried to fix CI --- .ci/before_install.sh | 10 ++++++++++ .travis.yml | 5 +---- 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100755 .ci/before_install.sh diff --git a/.ci/before_install.sh b/.ci/before_install.sh new file mode 100755 index 0000000..15cf21b --- /dev/null +++ b/.ci/before_install.sh @@ -0,0 +1,10 @@ + +# failure is a natural part of life +set -e + +# If language: r, +# install these testing packages we need +if [ -z "$TRAVIS_R_VERSION" ]; +then + Rscript -e "install.packages(c('devtools', 'knitr', 'testthat', 'rmarkdown'), repos = 'http://cran.rstudio.com')" +fi diff --git a/.travis.yml b/.travis.yml index 9e741f3..aecc757 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,10 +6,7 @@ addons: - oracle-java8-set-default before_install: - - if [ -z "$TRAVIS_R_VERSION" ]; \ - then \ - Rscript -e "install.packages(c('devtools', 'knitr', 'testthat', 'rmarkdown'), repos = 'http://cran.rstudio.com')" \ - fi + - .ci/before_install.sh # Manually specifying each build configuration. # Would be better to figure out how to build a matrix with two