瀏覽代碼

Only start postgres instance for postgres tests on Travis CI

Erik Johnston 5 年之前
父節點
當前提交
3b4223aa23
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      .travis.yml

+ 2 - 3
.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