From a555b24675e1ef2841de2053668a7c2643f21d8b Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Mon, 3 Jun 2019 12:50:59 +0200 Subject: [PATCH] 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. --- .circleci/config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index eb8386573..d08c361ae 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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"