summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-09-06 15:27:54 +0100
committerErik Johnston <erik@matrix.org>2018-09-06 15:27:54 +0100
commit3b4223aa234ec9f87d29a747af3e0b723d1183b1 (patch)
treec39bcc29240347f47ae7861386d310d6268b3537
parentPort handlers/ to Python 3 (#3803) (diff)
downloadsynapse-3b4223aa234ec9f87d29a747af3e0b723d1183b1.tar.xz
Only start postgres instance for postgres tests on Travis CI
-rw-r--r--.travis.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 11c76db2e5..ebc972ed24 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,9 +8,6 @@ before_script:
   - git remote set-branches --add origin develop
   - git fetch origin develop
 
-services:
-  - postgresql
-
 matrix:
   fast_finish: true
   include:
@@ -25,6 +22,8 @@ matrix:
 
   - python: 2.7
     env: TOX_ENV=py27-postgres TRIAL_FLAGS="-j 4"
+    services:
+      - postgresql
 
   - python: 3.6
     env: TOX_ENV=py36