Skip to content

Commit

Permalink
Merge pull request #190 from jerryliu55/fix-travis
Browse files Browse the repository at this point in the history
Install phantomJS 2.1.1 manually to fix travis
  • Loading branch information
tgxworld authored Feb 22, 2017
2 parents 9027979 + 31cdb91 commit 4a06133
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: ruby
cache:
directories:
- vendor/bundle
- travis_phantomjs
sudo: false
rvm:
- "2.3.3"
Expand All @@ -12,6 +13,12 @@ before_script:
- bundle exec rake db:create
- bundle exec rake db:migrate
before_install:
- "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
- if [ $(phantomjs --version) != '2.1.1' ]; then
rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs;
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2;
tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs;
fi
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script: bundle exec rake test
Expand Down

0 comments on commit 4a06133

Please sign in to comment.