From 5f34b08433a391476a26ff0ba183872a3eec4a8e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 14 Jul 2020 21:36:40 +0200 Subject: [PATCH] ci: fix failed tests not failing CI pipeline --- azure-pipelines.yml | 5 ++++- scripts/docker-compose.yml | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 62cfa8213..b34a63e0c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -180,9 +180,12 @@ stages: yarn - task: CmdLine@2 displayName: Run full test suite + inputs: + script: pipenv run coverage run ./manage.py test e2e + - task: CmdLine@2 + displayName: Prepare unittests and coverage for upload inputs: script: | - pipenv run coverage run ./manage.py test e2e mkdir output-e2e mv unittest.xml output-e2e/unittest.xml mv .coverage output-e2e/coverage diff --git a/scripts/docker-compose.yml b/scripts/docker-compose.yml index ed841bce5..3118c22c7 100644 --- a/scripts/docker-compose.yml +++ b/scripts/docker-compose.yml @@ -7,9 +7,8 @@ services: volumes: - db-data:/var/lib/postgresql/data environment: + POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_DB: passbook - POSTGRES_USER: passbook - POSTGRES_PASSWORD: "EK-5jnKfjrGRm<77" ports: - 5432:5432 restart: always