Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Using phantomjs 1.7.0 on Travis CI

  • Loading branch information...
commit 91ad5da1ffaf8132421cb3a56316ee5d429ccd7b 1 parent 07d5574
@tvdeyen tvdeyen authored
Showing with 10 additions and 2 deletions.
  1. +3 −1 .travis.yml
  2. +1 −1  Gemfile
  3. +6 −0 spec/support/ci/install_phantomjs
View
4 .travis.yml
@@ -6,7 +6,9 @@ branches:
only:
- master
before_script:
- - "phantomjs -v"
+ - sudo spec/support/ci/install_phantomjs
+ - "export PATH=phantomjs/bin:$PATH"
+ - phantomjs --version
- "sh -c 'cd spec/dummy && RAILS_ENV=test bundle exec rake db:create db:schema:load --trace'"
script: "bundle exec rspec spec"
env:
View
2  Gemfile
@@ -10,7 +10,7 @@ group :test do
gem 'sqlite3' if ENV['DB'].nil? || ENV['DB'] == 'sqlite'
gem 'mysql2' if ENV['DB'] == 'mysql'
gem 'pg' if ENV['DB'] == 'postgresql'
- gem 'poltergeist', '0.7.0'
+ gem 'poltergeist', '1.0.2'
unless ENV['CI']
gem 'launchy'
gem 'simplecov', :require => false
View
6 spec/support/ci/install_phantomjs
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+version=phantomjs-1.7.0-linux-i686
+wget http://phantomjs.googlecode.com/files/$version.tar.bz2
+tar xjf $version.tar.bz2
+mv $version phantomjs
Please sign in to comment.
Something went wrong with that request. Please try again.