coverage: only run coverage for subset of unit tests
- Codecov cannot handle as many coverage reports as we are generating - as a result, our PR coverage pages have been broken for a while, and it's hard to tell people where to enhance their testing in PR reviews. - Scale back to only running coverage for 3.7 and 2.7 unit tests - This is *probably* better. We run the build tests for good measure, but we do not need to evaluate them for coverage. The coverage reports are about unit tests.
This commit is contained in:
parent
85fa2dbe36
commit
3903658bfc
@ -34,7 +34,7 @@ jobs:
|
|||||||
sudo: required
|
sudo: required
|
||||||
os: linux
|
os: linux
|
||||||
language: python
|
language: python
|
||||||
env: TEST_SUITE=unit
|
env: [ TEST_SUITE=unit, COVERAGE=true ]
|
||||||
- python: '3.4'
|
- python: '3.4'
|
||||||
sudo: required
|
sudo: required
|
||||||
os: linux
|
os: linux
|
||||||
@ -54,7 +54,7 @@ jobs:
|
|||||||
sudo: required
|
sudo: required
|
||||||
os: linux
|
os: linux
|
||||||
language: python
|
language: python
|
||||||
env: TEST_SUITE=unit
|
env: [ TEST_SUITE=unit, COVERAGE=true ]
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
@ -80,7 +80,7 @@ jobs:
|
|||||||
env: TEST_SUITE=doc
|
env: TEST_SUITE=doc
|
||||||
- os: osx
|
- os: osx
|
||||||
language: generic
|
language: generic
|
||||||
env: [ TEST_SUITE=unit, PYTHON_VERSION=2.7 ]
|
env: [ TEST_SUITE=unit, PYTHON_VERSION=2.7, COVERAGE=true ]
|
||||||
# mpich (AutotoolsPackage)
|
# mpich (AutotoolsPackage)
|
||||||
- stage: 'build tests'
|
- stage: 'build tests'
|
||||||
python: '2.7'
|
python: '2.7'
|
||||||
|
@ -16,8 +16,12 @@ export SPACK_ROOT=$(realpath "$QA_DIR/../../..")
|
|||||||
# Source the setup script
|
# Source the setup script
|
||||||
. "$SPACK_ROOT/share/spack/setup-env.sh"
|
. "$SPACK_ROOT/share/spack/setup-env.sh"
|
||||||
|
|
||||||
|
# by default coverage is off.
|
||||||
|
coverage=""
|
||||||
|
coverage_run=""
|
||||||
|
|
||||||
# Set up some variables for running coverage tests.
|
# Set up some variables for running coverage tests.
|
||||||
if [[ "$TEST_SUITE" == "unit" || "$TEST_SUITE" == "build" ]]; then
|
if [[ "$COVERAGE" == "true" ]]; then
|
||||||
# these set up coverage for Python
|
# these set up coverage for Python
|
||||||
coverage=coverage
|
coverage=coverage
|
||||||
coverage_run="coverage run"
|
coverage_run="coverage run"
|
||||||
@ -33,9 +37,6 @@ if [[ "$TEST_SUITE" == "unit" || "$TEST_SUITE" == "build" ]]; then
|
|||||||
bashcov=$(realpath ${QA_DIR}/bashcov)
|
bashcov=$(realpath ${QA_DIR}/bashcov)
|
||||||
sed -i~ "s@#\!/bin/bash@#\!${bashcov}@" "$cc_script"
|
sed -i~ "s@#\!/bin/bash@#\!${bashcov}@" "$cc_script"
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
coverage=""
|
|
||||||
coverage_run=""
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user