2025-02-26 13:54:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
CYPRESS_SPEC_FOLDER="test/cypress/integration"
|
|
|
|
cleanup() {
|
|
|
|
docker-compose -p e2e --project-directory . -f test/cypress/docker-compose.yml down || true
|
|
|
|
}
|
|
|
|
|
|
|
|
trap cleanup SIGINT
|
|
|
|
|
|
|
|
#CLEAN
|
|
|
|
rm -rf test/cypress/screenshots
|
|
|
|
rm -rf test/cypress/results
|
2025-02-28 06:28:02 +00:00
|
|
|
rm -rf test/cypress/reports
|
2025-02-26 13:54:05 +00:00
|
|
|
rm -rf junit
|
|
|
|
|
|
|
|
#RUN
|
|
|
|
CI=true TZ=Europe/Madrid docker-compose -p e2e --project-directory . -f test/cypress/docker-compose.yml up -d
|
|
|
|
|
|
|
|
docker run -it --rm \
|
|
|
|
-v "$(pwd)":/app \
|
|
|
|
-e CI=true \
|
|
|
|
-e TZ=Europe/Madrid \
|
|
|
|
--network e2e_default \
|
|
|
|
lilium-dev \
|
|
|
|
bash -c '
|
|
|
|
source test/cypress/cypressParallel.sh
|
2025-02-28 08:39:28 +00:00
|
|
|
cypressParallel 2
|
2025-02-26 13:54:05 +00:00
|
|
|
'
|
|
|
|
|
2025-02-28 06:28:02 +00:00
|
|
|
cleanup
|