fix(cypressParallel.sh): refs #6695 improve script readability
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-03-05 11:30:05 +01:00
parent c2f708df9e
commit aef1bd046a
2 changed files with 15 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -120,7 +120,7 @@ pipeline {
}
def image = docker.build('lilium-dev', '-f docs/Dockerfile.dev docs')
image.inside("--network ${env.COMPOSE_PROJECT}_default -e CI -e TZ") {
sh 'sh test/cypress/cypressParallel.sh 4'
sh 'sh test/cypress/cypressParallel.sh 2'
}
}
}

View File

@ -1,4 +1,17 @@
#!/bin/bash
find 'test/cypress/integration' -mindepth 1 -maxdepth 1 -type d | xargs -P "$1" -I {} sh -c 'echo "🔷 {}" && xvfb-run -a cypress run --headless --browser chromium --spec "{}" --quiet > /dev/null 2>&1'
find 'test/cypress/integration' \
-mindepth 1 \
-maxdepth 1 \
-type d | \
xargs -P "$1" -I {} \
sh -c '''
echo "🔷 {}" &&
xvfb-run -a cypress run \
--headless \
--browser chromium \
--spec "{}" \
--quiet \
> /dev/null 2>&1
'''
wait