]> granicus.if.org Git - curl/commitdiff
ci: whitelist branches to avoid testing feature branches twice
authorSimon Warta <simon@kullo.net>
Tue, 20 Jun 2017 21:00:49 +0000 (23:00 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 21 Jun 2017 08:52:44 +0000 (09:52 +0100)
.travis.yml
appveyor.yml

index a7f5fd07417b145bd2cb74254a1359103b07c0f4..b7bd768d9108b2e51edfc9b74af6683b84a8109b 100644 (file)
@@ -90,5 +90,10 @@ script:
             (tar xf curl-99.98.97.tar.gz && mkdir build && cd build && ../curl-99.98.97/configure && make && make TFLAGS=1 test)
         fi
 
+# whitelist branches to avoid testing feature branches twice (as branch and as pull request)
+branches:
+    only:
+        - master
+
 notifications:
   email: false
index b9d5a7f2fe745030f9c5558b39a4f3c7a2c826cb..8e55009da16606204cb3721e8d842265fd0f45f3 100644 (file)
@@ -63,3 +63,8 @@ build_script:
     - cd build.%BDIR%
     - cmake .. -G"%PRJ_GEN%" -DCMAKE_USE_OPENSSL=%OPENSSL% -DCURL_STATICLIB=%STATICLIB% -DBUILD_TESTING=%TESTING%
     - cmake --build . --config %PRJ_CFG% --clean-first
+
+# whitelist branches to avoid testing feature branches twice (as branch and as pull request)
+branches:
+    only:
+        - master