Skip to content

Commit

Permalink
CI: Fix setting up test database
Browse files Browse the repository at this point in the history
Rails will complain that we have setup the sandbox database
in development environment, so we need to reset the db env
to test.
  • Loading branch information
tvdeyen committed Nov 1, 2024
1 parent 880acf3 commit 386d607
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ jobs:
name: "Runs tests on Solidus <<parameters.solidus_branch>>"
command: |
cd sandbox
bin/rails db:environment:set RAILS_ENV=test
bundle add rspec_junit_formatter --group test
<<#parameters.coverage>>export COVERAGE=true<</parameters.coverage>>
bundle exec rspec --format progress --format RspecJunitFormatter --out ../test-results/results.xml
environment:
RAILS_ENV: test
RAILS_VERSION: <<parameters.rails_version>>
SOLIDUS_BRANCH: <<parameters.solidus_branch>>
when: always
Expand Down

0 comments on commit 386d607

Please sign in to comment.