-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
816 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
dist: trusty # Use Ubuntu 14.04 image (instead of 12.04) | ||
language: r | ||
sudo: false | ||
r: 3.5.1 | ||
|
||
# Install packrat if needed and have it restore packages. | ||
install: | ||
- R -e 'if (system.file(package="packrat") == "") install.packages("packrat")' | ||
- R -e "packrat::packify(); packrat::restore()" | ||
|
||
cache: | ||
# Main R library | ||
packages: true | ||
directories: | ||
# Packrat packages | ||
- packrat/lib | ||
# PhantomJS | ||
- travis_phantomjs | ||
|
||
# Install PhantomJS (if not cached) | ||
before_install: | ||
- "export PHANTOMJS_VERSION=2.1.1" | ||
- "phantomjs --version" | ||
- "export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH" | ||
- "hash -r" | ||
- "phantomjs --version" | ||
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi" | ||
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; fi" | ||
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi" | ||
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then hash -r; fi" | ||
- "phantomjs --version" | ||
|
||
script: | ||
- R -f run_tests.R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.