Skip to content

Commit

Permalink
Add travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
fgarces committed Oct 15, 2019
1 parent b2c9e4e commit 6b03f39
Show file tree
Hide file tree
Showing 11 changed files with 211 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ tmtags

## IntelliJ/Rubymine
.idea
*.iml

## PROJECT::GENERAL
coverage
Expand Down
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: ruby
rvm:
- 2.6.5
gemfile:
- gemfiles/activerecord_4.gemfile
- gemfiles/activerecord_5.gemfile
- gemfiles/activerecord_6.gemfile
services:
- postgresql
before_script:
- psql -c 'create database postgresql_cursor_test;' -U postgres
- psql -c 'create table products ( id serial primary key, data varchar);' -U postgres -d postgresql_cursor_test
addons:
postgresql: '9.6'
12 changes: 12 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
appraise "activerecord-4" do
gem "activerecord", "4.2.11.1"
gem "pg", "~> 0.15"
end

appraise "activerecord-5" do
gem "activerecord", "5.2.3"
end

appraise "activerecord-6" do
gem "activerecord", "6.0.0"
end
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@ GEM
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.1, >= 2.1.8)
appraisal (2.2.0)
bundler
rake
thor (>= 0.14.0)
concurrent-ruby (1.1.5)
i18n (1.6.0)
concurrent-ruby (~> 1.0)
irb (1.0.0)
minitest (5.12.0)
pg (1.1.4)
rake (13.0.0)
thor (0.20.3)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
Expand All @@ -34,6 +39,7 @@ PLATFORMS
ruby

DEPENDENCIES
appraisal
irb
minitest
pg
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/activerecord_4.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord", "4.2.11.1"
gem "pg", "~> 0.15"

gemspec path: "../"
53 changes: 53 additions & 0 deletions gemfiles/activerecord_4.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
PATH
remote: ..
specs:
postgresql_cursor (0.6.4)
activerecord (>= 3.1.0)

GEM
remote: https://rubygems.org/
specs:
activemodel (4.2.11.1)
activesupport (= 4.2.11.1)
builder (~> 3.1)
activerecord (4.2.11.1)
activemodel (= 4.2.11.1)
activesupport (= 4.2.11.1)
arel (~> 6.0)
activesupport (4.2.11.1)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
appraisal (2.2.0)
bundler
rake
thor (>= 0.14.0)
arel (6.0.4)
builder (3.2.3)
concurrent-ruby (1.1.5)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
irb (1.0.0)
minitest (5.12.2)
pg (0.21.0)
rake (13.0.0)
thor (0.20.3)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)

PLATFORMS
ruby

DEPENDENCIES
activerecord (= 4.2.11.1)
appraisal
irb
minitest
pg (~> 0.15)
postgresql_cursor!
rake

BUNDLED WITH
1.17.3
7 changes: 7 additions & 0 deletions gemfiles/activerecord_5.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord", "5.2.3"

gemspec path: "../"
51 changes: 51 additions & 0 deletions gemfiles/activerecord_5.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
PATH
remote: ..
specs:
postgresql_cursor (0.6.4)
activerecord (>= 3.1.0)

GEM
remote: https://rubygems.org/
specs:
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)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
appraisal (2.2.0)
bundler
rake
thor (>= 0.14.0)
arel (9.0.0)
concurrent-ruby (1.1.5)
i18n (1.6.0)
concurrent-ruby (~> 1.0)
irb (1.0.0)
minitest (5.12.2)
pg (1.1.4)
rake (13.0.0)
thor (0.20.3)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)

PLATFORMS
ruby

DEPENDENCIES
activerecord (= 5.2.3)
appraisal
irb
minitest
pg
postgresql_cursor!
rake

BUNDLED WITH
1.17.3
7 changes: 7 additions & 0 deletions gemfiles/activerecord_6.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord", "6.0.0"

gemspec path: "../"
51 changes: 51 additions & 0 deletions gemfiles/activerecord_6.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
PATH
remote: ..
specs:
postgresql_cursor (0.6.4)
activerecord (>= 3.1.0)

GEM
remote: https://rubygems.org/
specs:
activemodel (6.0.0)
activesupport (= 6.0.0)
activerecord (6.0.0)
activemodel (= 6.0.0)
activesupport (= 6.0.0)
activesupport (6.0.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.1, >= 2.1.8)
appraisal (2.2.0)
bundler
rake
thor (>= 0.14.0)
concurrent-ruby (1.1.5)
i18n (1.6.0)
concurrent-ruby (~> 1.0)
irb (1.0.0)
minitest (5.12.2)
pg (1.1.4)
rake (13.0.0)
thor (0.20.3)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
zeitwerk (2.1.10)

PLATFORMS
ruby

DEPENDENCIES
activerecord (= 6.0.0)
appraisal
irb
minitest
pg
postgresql_cursor!
rake

BUNDLED WITH
1.17.3
1 change: 1 addition & 0 deletions postgresql_cursor.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'minitest'
spec.add_development_dependency 'pg'
spec.add_development_dependency 'rake'
spec.add_development_dependency "appraisal"
end

0 comments on commit 6b03f39

Please sign in to comment.