Skip to content

Commit

Permalink
tried to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Jan 30, 2019
1 parent f9f50b6 commit 22f129f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .ci/before_install.sh
Original file line number Diff line number Diff line change
@@ -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
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22f129f

Please sign in to comment.