build: refs #6695 cypress-setup fix volume
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
7f4a946011
commit
5dd63006be
|
@ -102,8 +102,7 @@ pipeline {
|
|||
env.NETWORK = "${PROJECT_NAME}-${env.BRANCH_NAME}-${env.BUILD_ID}"
|
||||
cleanDockerE2E()
|
||||
sh "pnpm exec cypress install"
|
||||
sh "docker-compose -p lilium-e2e -f docker-compose.e2e.yml build cypress-setup"
|
||||
|
||||
sh "docker build -t cypress-setup:latest -f ./test/cypress/Dockerfile ."
|
||||
// sh "docker network create ${env.NETWORK} || true"
|
||||
}
|
||||
|
||||
|
|
|
@ -28,14 +28,6 @@ services:
|
|||
volumes:
|
||||
- .:/app
|
||||
working_dir: /app
|
||||
cypress-setup:
|
||||
image: cypress-setup:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./test/cypress/Dockerfile
|
||||
command: sh -c "pnpm install --frozen-lockfile && pnpm exec cypress install"
|
||||
volumes:
|
||||
- ./node_modules:/app/node_modules
|
||||
vn-database:
|
||||
image: alexmorenovn/vn_db:latest
|
||||
# ports:
|
||||
|
|
|
@ -90,7 +90,7 @@ run_group() {
|
|||
if [[ "$exit_code" -ne 0 ]]; then
|
||||
echo "⚠️ Error en la ejecución de ${folderName} (Exit Code: $exit_code)"
|
||||
buildResult="UNSTABLE"
|
||||
docker logs "$container_id" > "test/cypress/docker/logs/${folderName}.log" 2>/dev/null || true
|
||||
docker logs "$container_id" > "test/cypress/docker/logs/${uniqueName}.log" 2>/dev/null || true
|
||||
failedTests+=("$folderName")
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue