bpo-36684: travis: split coverage for Python and C by methane · Pull Request #13105 · python/cpython

Expand Up @@ -79,25 +79,46 @@ matrix: # Python 3 is needed for Argument Clinic and multissl - HOMEBREW_NO_AUTO_UPDATE=1 brew install xz python3 - export PATH=$(brew --prefix)/bin:$(brew --prefix)/sbin:$PATH - os: linux - os: linux # Python coverage language: c compiler: gcc env: OPTIONAL=true addons: apt: packages: - lcov - xvfb before_script: - ./configure - make coverage -s -j4 - make -s -j4 # Need a venv that can parse covered code. - ./python -m venv venv - ./venv/bin/python -m pip install -U coverage - ./venv/bin/python -m test.pythoninfo script: # Skip tests that re-run the entire test suite. - xvfb-run ./venv/bin/python -m coverage run --pylib -m test --fail-env-changed -uall,-cpu -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn -x test_concurrent_futures after_script: # Probably should be after_success once test suite updated to run under coverage.py. # Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files. - source ./venv/bin/activate - bash <(curl -s https://codecov.io/bash) - os: linux # C coverage language: c compiler: gcc env: OPTIONAL=true addons: apt: packages: - lcov - xvfb before_script: - ./configure - make coverage -s -j4 # Need a venv that can parse covered code. - ./python -m venv venv - ./venv/bin/python -m test.pythoninfo script: # Skip tests that re-run the entire test suite. - xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu" after_script: # Probably should be after_success once test suite updated to run under coverage.py. # Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files. - source ./venv/bin/activate Expand Down