Permalink
Browse files

One more to figure out travis internals

  • Loading branch information...
1 parent e201d75 commit 279bde31f9af8ad076c7dd157337c0e25ca66bf7 @fdv fdv committed May 13, 2013
Showing with 5 additions and 7 deletions.
  1. +0 −2 .travis.yml
  2. +5 −1 Gemfile
  3. +0 −4 lib/tasks/travis.rake
View
@@ -7,7 +7,5 @@ env:
- DB=mysql
- DB=postgresql
-before_install:
- - rake travis
before_script:
- rake db:create db:migrate
View
@@ -3,7 +3,11 @@ env = ENV["RAILS_ENV"] || 'development'
dbfile = File.expand_path("../config/database.yml", __FILE__)
unless File.exists?(dbfile)
- raise "You need to configure config/database.yml first"
+ if ENV['DB']
+ FileUtils.cp "config/database.yml.#{ENV['DB'] || 'postgres'}", 'config/database.yml'
+ else
+ raise "You need to configure config/database.yml first"
+ end
else
conf = YAML.load(File.read(dbfile))
environment = conf[env]
@@ -1,4 +0,0 @@
-desc "copies the Travis config file at the good place"
-task :travis => :environment do
- FileUtils.cp "config/database.yml.#{ENV['DB'] || 'postgres'}", 'config/database.yml'
-end

0 comments on commit 279bde3

Please sign in to comment.