How about we switch the Gemfile *before* we bundle install?
PSA: don't drink & code, kids.
This commit is contained in:
parent
1cc7026b59
commit
7c24a1a1fb
1 changed files with 4 additions and 4 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
# Remove Gemfile.lock and rebundle on Ruby 1.9
|
|
||||||
ruby -e "system('rm Gemfile.lock') if RUBY_VERSION.include?('1.9')"
|
|
||||||
ruby -e "system('bundle install --without development production') if RUBY_VERSION.include?('1.9')"
|
|
||||||
|
|
||||||
# Change Gemfile if this is a postgresql build
|
# Change Gemfile if this is a postgresql build
|
||||||
echo $DB
|
echo $DB
|
||||||
ruby -e "system('cp config/ci/Gemfile.postgresql Gemfile') if ENV['DB'] == 'postgres'"
|
ruby -e "system('cp config/ci/Gemfile.postgresql Gemfile') if ENV['DB'] == 'postgres'"
|
||||||
|
|
||||||
|
# Remove Gemfile.lock and rebundle on Ruby 1.9
|
||||||
|
ruby -e "system('rm Gemfile.lock') if RUBY_VERSION.include?('1.9')"
|
||||||
|
ruby -e "system('bundle install --without development production') if RUBY_VERSION.include?('1.9')"
|
||||||
|
|
||||||
# Create a database.yml for the right database
|
# Create a database.yml for the right database
|
||||||
cp config/database.yml.example config/database.yml
|
cp config/database.yml.example config/database.yml
|
||||||
ruby -e "system('cp config/ci/database.yml.postgresql config/database.yml') if ENV['DB'] == 'postgres'"
|
ruby -e "system('cp config/ci/database.yml.postgresql config/database.yml') if ENV['DB'] == 'postgres'"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue