summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
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 /.gitlab-ci.yml
parent7728212b050d121833b2709e2eac46a766001a9e (diff)
downloadgitlab-ce-aada4607b7a442044e4b09bf4ad2fd5feb7cc53e.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.
Diffstat (limited to '.gitlab-ci.yml')
-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: