Skip to content

Commit

Permalink
Add ability to test master branch to detect regression
Browse files Browse the repository at this point in the history
Tests for gem will be executed periodically. In this way we can detect
regression in new version of rails and fix it as soon as possible.

There was also update for `rdoc` and version `> 6.2.0` only support ruby
`2.4.0`. I downgraded rdoc for this test suite.
  • Loading branch information
LTe committed Apr 18, 2020
1 parent 654f928 commit e8cbc4e
Show file tree
Hide file tree
Showing 13 changed files with 298 additions and 279 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Expand Up @@ -6,18 +6,21 @@ matrix:
gemfile: gemfiles/rails_3.2.gemfile
- rvm: 2.3.8
gemfile: gemfiles/rails_4.2.11.gemfile
- rvm: 2.6.3
- rvm: 2.7
gemfile: gemfiles/rails_5.2.gemfile
- rvm: 2.6.3
- rvm: 2.7
gemfile: gemfiles/rails_6.0.gemfile
- rvm: ruby-head
- rvm: 2.7
gemfile: gemfiles/rails_5.2.gemfile
- rvm: ruby-head
- rvm: 2.7
gemfile: gemfiles/rails_6.0.gemfile
- rvm: 2.7
gemfile: gemfiles/rails_master.gemfile
- rvm: ruby-head
gemfile: gemfiles/rails_master.gemfile
before_install:
- gem update --system
- gem install bundler

cache:
- bundler
- directories:
Expand Down
19 changes: 16 additions & 3 deletions Appraisals
Expand Up @@ -12,6 +12,7 @@ appraise "rails-4.2.11" do
gem "activerecord", "~> 4.2.11"
gem "activesupport", "~> 4.2.11"
gem "railties", "~> 4.2.11"
gem "rdoc", "6.2.0"

group :development do
gem 'sqlite3', '~> 1.3.6'
Expand All @@ -29,11 +30,23 @@ appraise 'rails-5.2' do
end

appraise 'rails-6.0' do
gem 'activerecord', '~> 6.0.0.rc1'
gem 'activesupport', '~> 6.0.0.rc1'
gem 'railties', '~> 6.0.0.rc1'
gem 'activerecord', '~> 6'
gem 'activesupport', '~> 6'
gem 'railties', '~> 6'

group :development do
gem 'sqlite3', '~> 1.4.0'
end
end

appraise 'rails-master' do
git 'https://github.com/rails/rails.git', branch: :master do
gem 'activerecord'
gem 'activesupport'
gem 'railties'
end

group :development do
gem 'sqlite3'
end
end
15 changes: 6 additions & 9 deletions Gemfile
@@ -1,14 +1,11 @@
source 'http://rubygems.org'

gem 'activerecord', '>= 3.0.0'
gem 'activesupport', '>= 3.0.0'
gem 'ancestry', '>= 1.3.0'
gem 'railties', '>= 3.0.0'
gem "ancestry"

group :development do
gem 'appraisal'
gem 'coveralls', require: false
gem 'jeweler'
gem 'rspec'
gem 'sqlite3'
gem "appraisal"
gem "coveralls", require: false
gem "jeweler"
gem "rspec"
gem "sqlite3"
end
117 changes: 43 additions & 74 deletions Gemfile.lock
@@ -1,65 +1,50 @@
GEM
remote: http://rubygems.org/
specs:
actionpack (5.2.3)
actionview (= 5.2.3)
activesupport (= 5.2.3)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.3)
activesupport (= 5.2.3)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activemodel (5.2.3)
activesupport (= 5.2.3)
activerecord (5.2.3)
activemodel (= 5.2.3)
activesupport (= 5.2.3)
arel (>= 9.0)
activesupport (5.2.3)
activemodel (6.0.2.2)
activesupport (= 6.0.2.2)
activerecord (6.0.2.2)
activemodel (= 6.0.2.2)
activesupport (= 6.0.2.2)
activesupport (6.0.2.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2)
addressable (2.4.0)
ancestry (3.0.7)
activerecord (>= 3.2.0)
appraisal (2.2.0)
bundler
rake
thor (>= 0.14.0)
arel (9.0.0)
builder (3.2.3)
concurrent-ruby (1.1.5)
builder (3.2.4)
concurrent-ruby (1.1.6)
coveralls (0.8.23)
json (>= 1.8, < 3)
simplecov (~> 0.16.1)
term-ansicolor (~> 1.3)
thor (>= 0.19.4, < 2.0)
tins (~> 1.6)
crass (1.0.6)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
diff-lcs (1.3)
docile (1.3.1)
erubi (1.8.0)
docile (1.3.2)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
git (1.5.0)
git (1.6.0)
rchardet (~> 1.8)
github_api (0.16.0)
addressable (~> 2.4.0)
descendants_tracker (~> 0.0.4)
faraday (~> 0.8, < 0.10)
hashie (>= 3.4)
mime-types (>= 1.16, < 3.0)
oauth2 (~> 1.0)
hashie (3.6.0)
highline (2.0.2)
i18n (1.6.0)
hashie (4.1.0)
highline (2.0.3)
i18n (1.8.2)
concurrent-ruby (~> 1.0)
jeweler (2.3.9)
builder
Expand All @@ -72,84 +57,68 @@ GEM
rake
rdoc
semver2
json (2.2.0)
json (2.3.0)
jwt (2.2.1)
loofah (2.5.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
method_source (0.9.2)
mime-types (2.99.3)
mini_portile2 (2.4.0)
minitest (5.11.3)
multi_json (1.13.1)
minitest (5.14.0)
multi_json (1.14.1)
multi_xml (0.6.0)
multipart-post (2.1.1)
nokogiri (1.10.9)
mini_portile2 (~> 2.4.0)
oauth2 (1.4.1)
faraday (>= 0.8, < 0.16.0)
oauth2 (1.4.4)
faraday (>= 0.8, < 2.0)
jwt (>= 1.0, < 3.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
psych (3.1.0)
rack (2.0.7)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
railties (5.2.3)
actionpack (= 5.2.3)
activesupport (= 5.2.3)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
rack (2.2.2)
rake (13.0.1)
rdoc (6.1.1)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-core (3.8.0)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.3)
rchardet (1.8.0)
rdoc (6.2.1)
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-core (3.9.1)
rspec-support (~> 3.9.1)
rspec-expectations (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-mocks (3.8.0)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.2)
semver2 (3.4.2)
simplecov (0.16.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
sqlite3 (1.4.1)
sqlite3 (1.4.2)
sync (0.5.0)
term-ansicolor (1.7.1)
tins (~> 1.0)
thor (0.20.3)
thor (1.0.1)
thread_safe (0.3.6)
tins (1.20.3)
tzinfo (1.2.5)
tins (1.24.1)
sync
tzinfo (1.2.7)
thread_safe (~> 0.1)
zeitwerk (2.3.0)

PLATFORMS
ruby

DEPENDENCIES
activerecord (>= 3.0.0)
activesupport (>= 3.0.0)
ancestry (>= 1.3.0)
ancestry
appraisal
coveralls
jeweler
railties (>= 3.0.0)
rspec
sqlite3

BUNDLED WITH
2.0.1
2.0.2
2 changes: 1 addition & 1 deletion gemfiles/rails_3.2.gemfile
Expand Up @@ -2,9 +2,9 @@

source "http://rubygems.org"

gem "ancestry"
gem "activerecord", "~> 3.2.22"
gem "activesupport", "~> 3.2.22"
gem "ancestry", ">= 1.3.0"
gem "railties", "~> 3.2.22"

group :development do
Expand Down

0 comments on commit e8cbc4e

Please sign in to comment.