Skip to content
Snippets Groups Projects
Verified Commit d8f86ad4 authored by David Beniamine's avatar David Beniamine
Browse files

Fix cleanup and avoid fail on acceptable errors

parent cd3e8660
No related branches found
No related tags found
1 merge request!25Add a gitlab-ci file
Pipeline #609 failed
...@@ -24,7 +24,7 @@ composer: ...@@ -24,7 +24,7 @@ composer:
- docker pull $TEST_IMAGE - docker pull $TEST_IMAGE
- docker network ls -f name=rekall || docker network create rekall - docker network ls -f name=rekall || docker network create rekall
- docker ps -a -f name=mysql | grep mysql && docker rm mysql || true - docker ps -a -f name=mysql | grep mysql && docker rm mysql || true
- docker ps -a -f name=rekall | grep mysql && docker rm rekall || true - docker ps -a -f name=rekall | grep rekall && docker rm rekall || true
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "web"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "web"'
- if: '$CI_COMMIT_MESSAGE =~ /test/' - if: '$CI_COMMIT_MESSAGE =~ /test/'
......
...@@ -30,8 +30,10 @@ echo "Waiting for mysql to be up and running" ...@@ -30,8 +30,10 @@ echo "Waiting for mysql to be up and running"
until nc -z -v -w30 mysql 3306; do until nc -z -v -w30 mysql 3306; do
sleep 5 sleep 5
done done
run_step "Doctrine create DB" php bin/console doctrine:migrations:migrate --env=test echo "Doctrine create DB"
run_step "Doctrine load fixtures" php bin/console doctrine:fixtures:load --no-interaction --env=test php bin/console doctrine:migrations:migrate --no-interaction --env=test
echo "Doctrine load fixtures"
php bin/console doctrine:fixtures:load --no-interaction --env=test
run_step "Unit and functional tests" composer tests run_step "Unit and functional tests" composer tests
run_step "Php Code Sniffer" composer phpcs run_step "Php Code Sniffer" composer phpcs
run_step "Php Static analysis" composer phpstan run_step "Php Static analysis" composer phpstan
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment