fix(cypress scripts): refs #6695 improve cleanup process and adjust output redirection
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit
Details
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit
Details
This commit is contained in:
parent
e5b524e8a0
commit
489e7850ab
|
@ -10,6 +10,6 @@ xargs -P "$1" -I {} sh -c '
|
|||
--headless \
|
||||
--spec "{}" \
|
||||
--quiet \
|
||||
> /dev/null 2>&1
|
||||
> /dev/null
|
||||
'
|
||||
wait
|
||||
|
|
|
@ -1,15 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
cleanup() {
|
||||
docker-compose -p e2e --project-directory . -f test/cypress/docker-compose.yml down || true
|
||||
if [[ -z "$ended" ]]; then
|
||||
ended=true
|
||||
docker-compose -p e2e --project-directory . -f test/cypress/docker-compose.yml down -v
|
||||
fi
|
||||
}
|
||||
|
||||
trap cleanup SIGINT
|
||||
|
||||
#CLEAN
|
||||
rm -rf test/cypress/screenshots
|
||||
rm -rf test/cypress/results
|
||||
rm -rf test/cypress/reports
|
||||
rm -rf junit
|
||||
rm -f test/cypress/screenshots/*
|
||||
rm -f test/cypress/results/*
|
||||
rm -f test/cypress/reports/*
|
||||
rm -f junit/e2e-*.xml
|
||||
|
||||
#RUN
|
||||
export CI=true
|
||||
|
|
Loading…
Reference in New Issue