From f38eb2644f74d915672e7c03b31080e1576e5f66 Mon Sep 17 00:00:00 2001 From: Yannick Jadoul Date: Wed, 8 Apr 2020 13:18:15 +0200 Subject: [PATCH] Run all tests on AppVeyor on master and appveyor-* branches --- appveyor.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 77c736e1..22621b5e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,7 +13,11 @@ build: off init: - cmd: set PATH=C:\Python37;C:\Python37\Scripts;%PATH% -- ps: $env:PYTEST_ADDOPTS='-k "unit_test or _basic" --suppress-no-test-exit-code' +- ps: | + $BRANCH = if ($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH) { $env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH } else { $env:APPVEYOR_REPO_BRANCH } + if ($BRANCH -eq 'master' -or $BRANCH.ToLower().StartsWith('appveyor-')) { + $env:PYTEST_ADDOPTS='-k "unit_test or _basic" --suppress-no-test-exit-code' + } install: python -m pip install --retries 3 -r requirements-dev.txt pytest-custom-exit-code