29 lines
558 B
Bash
29 lines
558 B
Bash
#!/bin/bash
|
|
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
|
|
export CI=true
|
|
export TZ=Europe/Madrid
|
|
|
|
docker-compose -p e2e --project-directory . -f test/cypress/docker-compose.yml up -d
|
|
|
|
docker run -it --rm \
|
|
-v "$(pwd)":/app \
|
|
--network e2e_default \
|
|
-e CI \
|
|
-e TZ \
|
|
lilium-dev \
|
|
bash -c 'sh test/cypress/cypressParallel.sh 2'
|
|
|
|
cleanup
|