From dde89def2b19882cd14ae1a9b76592ac4aeba1db Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 14 Apr 2023 16:04:17 +0200 Subject: [PATCH] ci: speed up postgres when testing api --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 595de6545..c1c6ab632 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -216,8 +216,12 @@ test_api: matrix: - PYTHON_VERSION: ["3.8", "3.9", "3.10", "3.11"] services: - - postgres:15-alpine - - redis:7-alpine + - name: postgres:15-alpine + command: + - --fsync=off + - --full_page_writes=off + - --synchronous_commit=off + - name: redis:7-alpine cache: *api_cache variables: DATABASE_URL: "postgresql://postgres@postgres/postgres"