Permalink
Browse files

Using phantomjs 1.7.0 on Travis CI

  • Loading branch information...
1 parent 07d5574 commit 91ad5da1ffaf8132421cb3a56316ee5d429ccd7b Thomas von Deyen committed Nov 12, 2012
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
@@ -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
@@ -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
@@ -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

0 comments on commit 91ad5da

Please sign in to comment.