OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Cleanup CI entrypoint
Cyril Rohrfe98be8a3c54
diff --git a/docker/ci/entrypoint.sh b/docker/ci/entrypoint.shindex a862f813d13..0bd6944181e 100755--- a/docker/ci/entrypoint.sh+++ b/docker/ci/entrypoint.sh@@ -1,5 +1,5 @@#!/bin/bash-set -ex+set -eexport PGBIN="/usr/lib/postgresql/$PGVERSION/bin"export JOBS="${CI_JOBS:=$(nproc)}"@@ -36,6 +36,8 @@ cleanup() {rm -rf tmp/cache/parallel*}+trap cleanup INT TERM EXIT+if [ "$1" == "setup-tests" ]; thenecho "Preparing environment for running tests..."shift@@ -62,30 +64,15 @@ if [ "$1" == "run-units" ]; thenshiftexecute "time bundle exec rake zeitwerk:check"execute "cd frontend && npm install && npm run test"- if ! execute "time bundle exec rake parallel:units" ; then- execute "cat tmp/parallel_summary.log"- cleanup- exit 1- else- cleanup- exit 0- fi+ execute "time bundle exec rake parallel:units"fiif [ "$1" == "run-features" ]; thenshiftexecute "cd frontend; npm install ; cd -"- execute "bundle exec rake assets:precompile ; ls -al frontend/.angular ; du -sh frontend/.angular ; ls -al frontend/"+ execute "bundle exec rake assets:precompile"execute "cp -rp config/frontend_assets.manifest.json public/assets/frontend_assets.manifest.json"- # if ! execute "time bundle exec rake parallel:features" ; then- if ! execute "time bundle exec turbo_tests -n 12 -v --runtime-log docker/ci/parallel_features_runtime.log spec/features" ; then- execute "cat tmp/parallel_summary.log"- cleanup- exit 1- else- cleanup- exit 0- fi+ execute "time bundle exec turbo_tests -n $JOBS --runtime-log docker/ci/parallel_features_runtime.log spec/features"fiif [ ! -z "$1" ] ; then