summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-04-11 22:28:48 -0700
committerStan Hu <stanhu@gmail.com>2019-04-12 08:12:52 -0700
commitaada4607b7a442044e4b09bf4ad2fd5feb7cc53e (patch)
treed1df1c21412f248c2f4638094a8069b36c090fd7
parent7728212b050d121833b2709e2eac46a766001a9e (diff)
downloadgitlab-ce-sh-disable-postgresql-fsync-ci.tar.gz
Turn off database durability settings in CIsh-disable-postgresql-fsync-ci
As described in https://www.postgresql.org/docs/current/non-durability.html, we can save money and time by disabling durability in tests.
-rw-r--r--.gitlab-ci.yml10
1 files 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: