Fix CI entrypoint

pull/8965/head
Cyril Rohr 4 years ago
parent 130202a68c
commit f9de19fe51
  1. 4
      docker/ci/entrypoint.sh

@ -54,7 +54,7 @@ if [ "$1" == "run-units" ]; then
execute "cd frontend && npm install && npm run test"
execute "time bundle exec rspec -I spec_legacy spec_legacy"
execute "time bundle exec rake parallel:units"
if [ ! $? -eq 0 ];
if [ ! $? -eq 0 ]; then
execute "cat tmp/spec_examples.txt | grep -Ev 'passed|unknown|pending'"
exit 1
fi
@ -66,7 +66,7 @@ if [ "$1" == "run-features" ]; then
execute "bundle exec rake assets:precompile assets:clean"
execute "cp -rp config/frontend_assets.manifest.json public/assets/frontend_assets.manifest.json"
execute "time bundle exec rake parallel:features"
if [ ! $? -eq 0 ];
if [ ! $? -eq 0 ]; then
execute "cat tmp/spec_examples.txt | grep -Ev 'passed|unknown|pending'"
exit 1
fi

Loading…
Cancel
Save