Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
66fc604
replaced use of Capybara.current_session.wait_until with Timeout::tim…
Jan 18, 2014
62c188d
removing lock files
Jan 18, 2014
7885662
introduce Appraisals and redoing some rake tasks to support a wider t…
Jan 18, 2014
7eeb5c1
making use of Selenium::WebDriver optional, and thus only supporting …
Jan 18, 2014
80aff79
updates to support Capybara <2.3
Jan 18, 2014
3360e01
Creating CI specific Gemfile. Using top-level Gemfile for running rak…
Jan 18, 2014
34a00e3
restricting mime-type on 1.8.7
Jan 18, 2014
a4f9438
restricting mime-types in 2.3 test app
Jan 18, 2014
8d8c125
include ruby version in appraisal name
Jan 18, 2014
ab38272
adding Appraisal gemfiles to git
Jan 18, 2014
7cd0274
adding in testing layout to test multiple capybara versions against r…
Jan 18, 2014
d7e2473
filling out capy1.1 for rails 3.2
Jan 18, 2014
2f330ad
handle nonexistant gemfiles in test apps
Jan 18, 2014
dc0acfe
using full file path of gemfile
Jan 18, 2014
665e70c
dont generate gemfiles
Jan 18, 2014
951b599
updating rake tasks to run across all gemfiles
Jan 20, 2014
7c6347b
some more fixes
Jan 20, 2014
25cd68e
adding capybara2.1/2.2 test gemfiles and fixing Collection with support
Jan 21, 2014
3a492aa
moving version fixing for 1.8.7 to Gemfile
Jan 21, 2014
2ec1a97
use standard Gemfile for CI
Jan 21, 2014
75b03d4
removing unused Gemfile-ci
Jan 21, 2014
622c2d4
Redoing gemfile madness so that the Rails tests actually use the righ…
Jan 21, 2014
aee3547
fixing rails 2.3 helper for capy2.X support
Jan 21, 2014
c42a8f1
moving integration test gemfiles into test apps and using Appraisals …
Jan 21, 2014
d3b3a8d
parallelize travis tasks
Jan 21, 2014
8954f1c
more travising
Jan 21, 2014
216b30c
more travising
Jan 21, 2014
09d6866
more travising
Jan 21, 2014
be6f6e3
optimizing travis
Jan 21, 2014
977d4ab
better local test:ci support
Jan 21, 2014
3d5548c
try consolidated build
Jan 21, 2014
1601507
adding notes
Jan 21, 2014
4165cd3
update changelog [ci skip]
Jan 21, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ test/test_apps/**/.bundle
test/test_apps/**/db/*.sqlite3
test/test_apps/**/log/*.log
test/test_apps/**/tmp/**/*
test/test_apps/**/gemfiles/*.lock

*.lock
gemfiles/*.lock

*.sqlite3
pkg
Expand Down
52 changes: 33 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ rvm:

gemfile:
- Gemfile
- Gemfile.ruby-1.9.3
- Gemfile.ruby-2.0.0

bundler_args: ''

Expand All @@ -19,21 +17,37 @@ before_install:
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- bundle exec rake test:integration:selenium:install

script: "bundle exec rake"
- bundle exec rake test:ci:install

matrix:
exclude:
- rvm: 1.9.3
gemfile: Gemfile
- rvm: 2.0.0
gemfile: Gemfile
- rvm: 1.8.7
gemfile: Gemfile.ruby-1.9.3
- rvm: 2.0.0
gemfile: Gemfile.ruby-1.9.3
- rvm: 1.8.7
gemfile: Gemfile.ruby-2.0.0
- rvm: 1.9.3
gemfile: Gemfile.ruby-2.0.0
script: "bundle exec rake test:ci"

# Without the below, Travis runs 3 builds, that take about 14 mins elapsed time and 22 mins worker time:
#https://travis-ci.org/appfolio/ae_page_objects/builds/17328803
#
# With the below you get a build that takes about 15 mins elapsed time and 46.5 mins worker time:
#https://travis-ci.org/appfolio/ae_page_objects/builds/17328226
#
# It might be worth trying targetting the Appraisal gemfiles directly...
#
# - "The Below" -
#
## For all the integration tests
#env:
# matrix:
# - RAILS_VERSION=2.3
# - RAILS_VERSION=3.0
# - RAILS_VERSION=3.1
# - RAILS_VERSION=3.2
# - UNITS=true
#
#matrix:
# exclude:
# - rvm: 2.0.0
# gemfile: Gemfile
# env: RAILS_VERSION=2.3
# - rvm: 2.0.0
# gemfile: Gemfile
# env: RAILS_VERSION=3.0
# - rvm: 2.0.0
# gemfile: Gemfile
# env: RAILS_VERSION=3.1
14 changes: 14 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
appraise "capybara-1.1-ruby#{RUBY_VERSION}" do
gem 'capybara', '~> 1.1.4'
end

if RUBY_VERSION != '1.8.7'
appraise "capybara-2.1-ruby#{RUBY_VERSION}" do
gem 'capybara', '~> 2.1.0'
end

appraise "capybara-2.2-ruby#{RUBY_VERSION}" do
gem 'capybara', '~> 2.2.0'
end
end

4 changes: 4 additions & 0 deletions CHANGELOG.rdoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
== X.X.X

* Support Capybara 2

== 0.5.2

* A few Collection improvements
Expand Down
13 changes: 9 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
source "https://rubygems.org"

gemspec

gem "nokogiri", "< 1.6.0"
gem "appraisal", "~> 0.5.1"
gem "mocha", "= 0.13.3"
gem "selenium-webdriver", ">= 0"
gem 'rubyzip', '< 1.0.0'

gemspec

if RUBY_VERSION =~ /\A1\.8/
gem 'capybara', '~> 1.1.4'
gem "nokogiri", "< 1.6.0"
gem 'rubyzip', '< 1.0.0'
gem 'mime-types', '< 2'
end
52 changes: 0 additions & 52 deletions Gemfile.lock

This file was deleted.

52 changes: 0 additions & 52 deletions Gemfile.ruby-1.9.3.lock

This file was deleted.

52 changes: 0 additions & 52 deletions Gemfile.ruby-2.0.0.lock

This file was deleted.

Loading