Skip to content

Commit

Permalink
explicitly migrate the test DB
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Sep 11, 2024
1 parent e3e995b commit 9ee18f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions theforeman.org/pipelines/lib/foreman.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9ee18f4

Please sign in to comment.