From 0154a8f99207e8d727f5d420ccb3486d4ae43e47 Mon Sep 17 00:00:00 2001 From: Yannick Jadoul Date: Sat, 3 Oct 2020 21:40:42 +0200 Subject: [PATCH] Run less tests in macOS builds on Travis CI --- .travis.yml | 6 ++++-- appveyor.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 51698b97..df904eba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,9 @@ jobs: - name: macOS | x86_64 | Python 3.x os: osx osx_image: xcode10.2 - env: PYTHON=python3 + env: + - PYTHON=python3 + - PYTEST_ADDOPTS='-k "unit_test or test_0_basic" --suppress-no-test-exit-code' - name: Windows | x86_64 | Python 3.6 os: windows @@ -53,6 +55,6 @@ jobs: # must repeat the s390x job above exactly to match - *linux_s390x_36 -install: $PYTHON -m pip install -r requirements-dev.txt +install: $PYTHON -m pip install -r requirements-dev.txt pytest-custom-exit-code script: $PYTHON ./bin/run_tests.py diff --git a/appveyor.yml b/appveyor.yml index 6c2bdee9..acc69fdf 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -16,7 +16,7 @@ init: - ps: | $BRANCH = if ($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH) { $env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH } else { $env:APPVEYOR_REPO_BRANCH } if (-not ($BRANCH -eq 'master' -or $BRANCH.ToLower().StartsWith('appveyor-'))) { - $env:PYTEST_ADDOPTS='-k "unit_test or _basic" --suppress-no-test-exit-code' + $env:PYTEST_ADDOPTS='-k "unit_test or test_0_basic" --suppress-no-test-exit-code' } install: python -m pip install -r requirements-dev.txt pytest-custom-exit-code