From f541f7b94a4b68c414394ac56fd66a0ed0a19e6d Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 20 Jun 2017 23:00:49 +0200 Subject: [PATCH] ci: whitelist branches to avoid testing feature branches twice --- .travis.yml | 5 +++++ appveyor.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.travis.yml b/.travis.yml index a7f5fd074..b7bd768d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/appveyor.yml b/appveyor.yml index b9d5a7f2f..8e55009da 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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