This repository has been archived by the owner on Jan 1, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish ruby2.0 compatiblity with testing setup.
* Split out gemfiles in travis for explicit matrix. * Update gemfiles for ruby2.0 compatibility ** rails/rails#9406 <- makes rails 3.2 Ruby 2.0 compatible, meaning the first version we'll test with and support is this ** Use older version of rubygems for rails 2 compatibility * Update dummy rails3 test app and rails loading tests. * Update passenger test will fallback Passenger SIGKILL: MySQL + Passenger 2 + Rails 2.3 + Ruby 1.8.7 seem to not close connections. * Closes #131.
- Loading branch information
1 parent
62b20eb
commit 1580189
Showing
13 changed files
with
216 additions
and
122 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 |
---|---|---|
@@ -1,23 +1,65 @@ | ||
language: ruby | ||
bundler_args: --without development | ||
script: 'rake appraisal test' | ||
script: 'bundle exec rake test' | ||
services: | ||
- mongodb | ||
rvm: | ||
- 1.8.7 | ||
- 1.9.3 | ||
- 2.0.0 | ||
- ruby-head | ||
env: | ||
- DB=mongodb | ||
- DB=redis | ||
- DB=mysql | ||
#- DB=postgres | ||
gemfile: | ||
- Gemfile | ||
- gemfiles/rails3.gemfile | ||
- gemfiles/rails31.gemfile | ||
- gemfiles/rails32.gemfile | ||
before_script: | ||
- if [[ "`basename $BUNDLE_GEMFILE`" == "Gemfile" ]]; then rvm rubygems 1.8.25; fi # Rubygems 2.0.x fails with Rails 2.3 | ||
- "mysql -e 'create database vanity_test;' >/dev/null" | ||
- "rake appraisal:install" | ||
#- "psql -c 'create database vanity_test;' -U postgres >/dev/null" | ||
#- if [[ "$DB" == "pgsql" ]]; then psql -c 'create database vanity_test;' -U postgres >/dev/null; fi | ||
matrix: | ||
allow_failures: | ||
exclude: | ||
# Rails 2 is not officially supported on Ruby 1.9.3 | ||
- rvm: 1.9.3 | ||
env: DB=mongodb | ||
gemfile: Gemfile | ||
- rvm: 1.9.3 | ||
env: DB=redis | ||
gemfile: Gemfile | ||
- rvm: 1.9.3 | ||
env: DB=mysql | ||
gemfile: Gemfile | ||
# Rails <= 3.2 is not officially supported on Ruby 2.0.0 | ||
- rvm: 2.0.0 | ||
env: DB=mongodb | ||
gemfile: Gemfile | ||
- rvm: 2.0.0 | ||
env: DB=redis | ||
gemfile: Gemfile | ||
- rvm: 2.0.0 | ||
env: DB=mysql | ||
gemfile: Gemfile | ||
- rvm: 2.0.0 | ||
env: DB=mongodb | ||
gemfile: gemfiles/rails3.gemfile | ||
- rvm: 2.0.0 | ||
env: DB=redis | ||
gemfile: gemfiles/rails3.gemfile | ||
- rvm: 2.0.0 | ||
env: DB=mysql | ||
gemfile: gemfiles/rails3.gemfile | ||
allow_failures: | ||
- rvm: ruby-head | ||
- rvm: 2.0.0 | ||
env: DB=mongodb | ||
gemfile: gemfiles/rails31.gemfile | ||
- rvm: 2.0.0 | ||
env: DB=redis | ||
gemfile: gemfiles/rails31.gemfile | ||
- rvm: 2.0.0 | ||
env: DB=mysql | ||
gemfile: gemfiles/rails31.gemfile |
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 |
---|---|---|
@@ -1,15 +1,17 @@ | ||
appraise "rails3" do | ||
gem "rails", "3.0.11" | ||
gem "fastthread", :git => "git://github.com/zoltankiss/fastthread.git", :platforms => :mri_20 | ||
gem "passenger", "~>3.0" | ||
end | ||
|
||
appraise "rails31" do | ||
gem "rails", "3.1.3" | ||
gem "fastthread", :git => "git://github.com/zoltankiss/fastthread.git", :platforms => :mri_20 | ||
gem "passenger", "~>3.0" | ||
end | ||
|
||
appraise "rails32" do | ||
gem "rails", "3.2.1" | ||
gem "fastthread", :git => "git://github.com/zoltankiss/fastthread.git", :platforms => :mri_20 | ||
gem "passenger", "~>3.0" | ||
end | ||
|
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
require 'rubygems' | ||
gemfile = File.expand_path('../../../../Gemfile', __FILE__) | ||
|
||
if File.exist?(gemfile) | ||
ENV['BUNDLE_GEMFILE'] = gemfile | ||
require 'bundler' | ||
Bundler.setup | ||
end | ||
# Set up gems listed in the Gemfile. | ||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | ||
|
||
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) | ||
|
||
$:.unshift File.expand_path('../../../../lib', __FILE__) |
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
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.