summary refs log tree commit diff
path: root/.travis.yml
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-10-24 13:48:03 +0100
committerRichard van der Hoff <richard@matrix.org>2018-10-24 15:32:18 +0100
commit83d9ca71225239e2f4ba27dc79907e93d8573d1b (patch)
treede6a5873c4537ac076baf975afb14f38dac9392f /.travis.yml
parentDisable newsfragment checks on branch builds (diff)
downloadsynapse-83d9ca71225239e2f4ba27dc79907e93d8573d1b.tar.xz
only fetch develop for check-newsfragments
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 107b3ab70b..56e10dbdc6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,10 +15,6 @@ branches:
     - develop
     - /^release-v/
 
-before_script:
-  - git remote set-branches --add origin develop
-  - git fetch origin develop
-
 matrix:
   fast_finish: true
   include:
@@ -57,6 +53,10 @@ matrix:
     if: type = pull_request
     python: 3.6
     env: TOX_ENV=check-newsfragment
+    script:
+      - git remote set-branches --add origin develop
+      - git fetch origin develop
+      - tox -e $TOX_ENV
 
 install:
   - pip install tox