mirror of
https://github.com/azaion/detections.git
synced 2026-06-22 19:01:08 +00:00
Fixed state before e2e tests
This commit is contained in:
@@ -20,7 +20,11 @@ steps:
|
||||
COMPOSE_PROJECT_NAME: detections-e2e
|
||||
commands:
|
||||
- cd e2e
|
||||
- mkdir -p results logs
|
||||
- mkdir -p fixtures results logs
|
||||
- if [ -d fixtures/classes.json ]; then rm -rf fixtures/classes.json; fi
|
||||
- if [ ! -f fixtures/classes.json ] && [ -f ../classes.json ]; then cp ../classes.json fixtures/classes.json; fi
|
||||
- test -f fixtures/classes.json
|
||||
- docker compose -f docker-compose.test.yml --profile cpu down -v --remove-orphans || true
|
||||
- docker compose -f docker-compose.test.yml --profile cpu up --build --abort-on-container-exit --exit-code-from e2e-runner
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
Reference in New Issue
Block a user