Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-04-12 08:28:48 +0300
committerStan Hu <stanhu@gmail.com>2019-04-12 18:12:52 +0300
commitaada4607b7a442044e4b09bf4ad2fd5feb7cc53e (patch)
treed1df1c21412f248c2f4638094a8069b36c090fd7 /.gitlab-ci.yml
parent7728212b050d121833b2709e2eac46a766001a9e (diff)
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.
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: