Skip to content

Commit

Permalink
Add Travis. Added default rake task to run tests with a single databa…
Browse files Browse the repository at this point in the history
…se by default
  • Loading branch information
raviolicode committed Mar 25, 2014
1 parent 2ea8b87 commit 33e3700
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
@@ -0,0 +1,8 @@
language: ruby
rvm:
- 1.9.3
- 1.9.2
- 1.8.7
env:
- DB=postgresql
- DB=mysql
9 changes: 7 additions & 2 deletions Rakefile
@@ -1,5 +1,12 @@
#!/usr/bin/env rake
require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = "--format documentation"
end

task :default => :spec

task :rspec_all_databases do
results = {}
Expand Down Expand Up @@ -28,8 +35,6 @@ task :rspec_all_databases do
puts results.inspect
end

task :default => :rspec_all_databases

task :n, :from, :to do |t, args|
Dir[File.expand_path("../lib/upsert/**/#{args.from}.*", __FILE__)].each do |path|
dir = File.dirname(path)
Expand Down

0 comments on commit 33e3700

Please sign in to comment.