specs: precompile Webpack assets before running the specs suite
This avoids the first feature spec stalling for a few dozens of seconds because Webpack assets are compiling (and thus reduce the risk of the spec timing out). Pre-compilation takes ~ 10s.
This commit is contained in:
parent
2bd749a325
commit
a555b24675
1 changed files with 5 additions and 0 deletions
|
@ -69,6 +69,11 @@ jobs:
|
|||
DATABASE_URL: "postgres://tps_test@localhost:5432/tps_test"
|
||||
name: Create DB
|
||||
command: bundle exec rake db:create db:schema:load db:migrate RAILS_ENV=test
|
||||
- run:
|
||||
environment:
|
||||
RAILS_ENV: test
|
||||
name: Precompile Webpack assets
|
||||
command: bin/webpack
|
||||
- run:
|
||||
environment:
|
||||
DATABASE_URL: "postgres://tps_test@localhost:5432/tps_test"
|
||||
|
|
Loading…
Reference in a new issue