forked from localytics/odbc_adapter
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jbender/travis
Re-enable expanded test suite
- Loading branch information
Showing
18 changed files
with
274 additions
and
90 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
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,29 +1,43 @@ | ||
sudo: required | ||
language: ruby | ||
cache: bundler | ||
matrix: | ||
include: | ||
- rvm: 2.3.1 | ||
env: | ||
- DB=mysql | ||
- CONN_STR='DRIVER=MySQL;SERVER=localhost;DATABASE=odbc_test;USER=root;PASSWORD=;' | ||
addons: | ||
mysql: "5.5" | ||
apt: | ||
packages: | ||
- unixodbc | ||
- unixodbc-dev | ||
- libmyodbc | ||
- mysql-client | ||
- rvm: 2.3.1 | ||
env: | ||
- DB=postgresql | ||
- CONN_STR='DRIVER={PostgreSQL ANSI};SERVER=localhost;PORT=5432;DATABASE=odbc_test;UID=postgres;' | ||
addons: | ||
postgresql: "9.1" | ||
apt: | ||
packages: | ||
- unixodbc | ||
- unixodbc-dev | ||
- odbc-postgresql | ||
before_script: bin/ci-setup | ||
|
||
services: | ||
- postgresql | ||
- mysql | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- unixodbc | ||
- unixodbc-dev | ||
# MySQL | ||
- libmyodbc | ||
- mysql-client-5.6 | ||
# Postgres | ||
- odbc-postgresql | ||
|
||
rvm: | ||
- 2.3 | ||
- 2.4 | ||
- 2.5 | ||
|
||
env: | ||
- DB=mysql CONN_STR='DRIVER=MySQL;SERVER=localhost;DATABASE=odbc_test;USER=root;PASSWORD=;' | ||
- DB=postgresql CONN_STR='DRIVER={PostgreSQL ANSI};SERVER=localhost;PORT=5432;DATABASE=odbc_test;UID=postgres;' | ||
|
||
before_install: | ||
- gem update --system | ||
|
||
gemfile: | ||
- gemfiles/active_record_5_0.gemfile | ||
- gemfiles/active_record_5_1.gemfile | ||
- gemfiles/active_record_5_2.gemfile | ||
|
||
before_script: | ||
- sh -c "if [ '$DB' = 'mysql' ]; then sudo odbcinst -i -d -f /usr/share/libmyodbc/odbcinst.ini; fi" | ||
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'DROP DATABASE IF EXISTS odbc_test; CREATE DATABASE IF NOT EXISTS odbc_test;' -uroot; fi" | ||
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'GRANT ALL PRIVILEGES ON *.* TO "root"@"localhost";' -uroot; fi" | ||
|
||
- sh -c "if [ '$DB' = 'postgresql' ]; then sudo odbcinst -i -d -f /usr/share/psqlodbc/odbcinst.ini.template; fi" | ||
- sh -c "if [ '$DB' = 'postgresql' ]; then psql -c 'CREATE DATABASE odbc_test;' -U postgres; fi" |
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,6 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
gem 'activerecord', '5.0.1' | ||
gem 'pry', '~> 0.11.1' |
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,14 +1,24 @@ | ||
require 'bundler/gem_tasks' | ||
require 'rake/testtask' | ||
require 'rubocop/rake_task' | ||
|
||
Rake::TestTask.new(:test) do |t| | ||
t.libs << 'test' | ||
t.libs << 'lib' | ||
t.test_files = FileList['test/**/*_test.rb'] | ||
task default: %i[rubocop test] | ||
|
||
desc 'Run rubocop' | ||
task :rubocop do | ||
require 'rubocop/rake_task' | ||
|
||
RuboCop::RakeTask.new do |task| | ||
task.patterns = ['lib/**/*.rb'] | ||
task.formatters = ['simple'] | ||
end | ||
end | ||
|
||
RuboCop::RakeTask.new(:rubocop) | ||
Rake::Task[:test].prerequisites << :rubocop | ||
desc 'Run tests' | ||
task :test do | ||
require 'rake/testtask' | ||
|
||
task default: :test | ||
Rake::TestTask.new do |task| | ||
task.libs << 'test' | ||
task.libs << 'lib' | ||
task.test_files = FileList['test/**/*_test.rb'] | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec(path: '..') | ||
|
||
gem 'activerecord', '~> 5.0.1' |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec(path: '..') | ||
|
||
gem 'activerecord', '~> 5.1.0' |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec(path: '..') | ||
|
||
gem 'activerecord', '~> 5.2.0' |
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
Oops, something went wrong.