From c70ad1dade59f6b72717a403df5644fc83a0c0f2 Mon Sep 17 00:00:00 2001 From: Dmitry Pavlov Date: Tue, 18 Aug 2020 22:21:29 +0300 Subject: [PATCH] Modify pipeline.yml --- .buildkite/pipeline.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index d550f34d..a4321bdc 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -2,19 +2,10 @@ steps: - label: 'Build image' command: docker build --tag diagrams:1.0 -f ./docker/dev/Dockerfile . - - wait - - label: 'Run container' - command: docker run -d -it --name diagrams --mount type=bind,source="$(pwd)",target=/usr/src/diagrams diagrams:1.0 - - wait - label: 'Run tests' - command: docker exec diagrams python -m unittest tests/*.py -v + command: docker run --rm diagrams:1.0 python -m unittest tests/*.py -v - wait - label: 'Autogen classes' - command: docker exec diagrams ./autogen.sh - - - wait: ~ - continue_on_failure: true - - label: 'Cleanup' - command: docker rm --force diagrams \ No newline at end of file + command: docker run --rm diagrams:1.0 ./autogen.sh \ No newline at end of file