From aada4607b7a442044e4b09bf4ad2fd5feb7cc53e Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Thu, 11 Apr 2019 22:28:48 -0700 Subject: Turn off database durability settings in CI As described in https://www.postgresql.org/docs/current/non-durability.html, we can save money and time by disabling durability in tests. --- .gitlab-ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8f80f1656d6..8219bacda92 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -78,13 +78,15 @@ stages: .use-pg: &use-pg services: - - postgres:9.6 - - redis:alpine + - name: postgres:9.6 + command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"] + - name: redis:alpine .use-pg-10: &use-pg-10 services: - - postgres:10.0 - - redis:alpine + - name: postgres:10.0 + command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"] + - name: redis:alpine .use-mysql: &use-mysql services: -- cgit v1.2.1