30 lines
651 B
Bash
30 lines
651 B
Bash
#!/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
|
|
rm -rf test/cypress/reports
|
|
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
|
|
cypressParallel 2
|
|
'
|
|
|
|
cleanup
|