Skip to content

Commit

Permalink
Test Fat Free CRM on MySQL & PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Dec 13, 2011
1 parent 3ce3623 commit 3aa80bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ rvm:
- 1.9.2
- 1.8.7

env:
- DB=mysql
- DB=postgres

# Create database before testing
before_script:
- "psql -c 'create database fat_free_crm_test;' -U postgres"
- "mysql -e 'create database fat_free_crm_test;'"

# Only build master branch
branches:
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/fat_free_crm.rake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ end
namespace :crm do
desc "Copy example config files"
task :copy_default_config do
config_files = { 'database.postgres.yml' => 'database.yml',
config_files = { "database.#{ENV['DB'] || 'postgres'}.yml" => 'database.yml',
'settings.yml.example' => 'settings.yml' }
puts "Copying example config files..."
config_files.each do |old, new|
Expand Down

0 comments on commit 3aa80bd

Please sign in to comment.