diff --git a/theforeman.org/pipelines/lib/foreman.groovy b/theforeman.org/pipelines/lib/foreman.groovy index c0dad077..97242bdc 100644 --- a/theforeman.org/pipelines/lib/foreman.groovy +++ b/theforeman.org/pipelines/lib/foreman.groovy @@ -18,9 +18,9 @@ def configureDatabase(ruby) { bundleInstall(ruby, '--without=development') archiveArtifacts(artifacts: 'Gemfile.lock') bundleExec(ruby, 'rake db:drop >/dev/null 2>/dev/null || true') - bundleExec(ruby, 'rake db:create --trace') + bundleExec(ruby, 'rake db:create --trace RAILS_ENV=test') bundleExec(ruby, 'rake db:create --trace RAILS_ENV=production') - bundleExec(ruby, 'rake db:migrate --trace') + bundleExec(ruby, 'rake db:migrate --trace RAILS_ENV=test') } def cleanup(ruby) {