Generate coverage reports for all unit and build tests
This commit is contained in:
parent
5cc2309330
commit
7e0bd152b7
2 changed files with 14 additions and 14 deletions
26
.travis.yml
26
.travis.yml
|
@ -34,7 +34,7 @@ jobs:
|
||||||
- python: '2.7'
|
- python: '2.7'
|
||||||
os: linux
|
os: linux
|
||||||
language: python
|
language: python
|
||||||
env: [ TEST_SUITE=unit, COVERAGE=true ]
|
env: TEST_SUITE=unit
|
||||||
- python: '3.3'
|
- python: '3.3'
|
||||||
os: linux
|
os: linux
|
||||||
language: python
|
language: python
|
||||||
|
@ -50,13 +50,13 @@ jobs:
|
||||||
- python: '3.6'
|
- python: '3.6'
|
||||||
os: linux
|
os: linux
|
||||||
language: python
|
language: python
|
||||||
env: [ TEST_SUITE=unit, COVERAGE=true ]
|
env: TEST_SUITE=unit
|
||||||
- python: '3.7'
|
- python: '3.7'
|
||||||
os: linux
|
os: linux
|
||||||
dist: xenial
|
dist: xenial
|
||||||
sudo: true
|
sudo: true
|
||||||
language: python
|
language: python
|
||||||
env: [ TEST_SUITE=unit, COVERAGE=true ]
|
env: TEST_SUITE=unit
|
||||||
- python: '3.6'
|
- python: '3.6'
|
||||||
os: linux
|
os: linux
|
||||||
language: python
|
language: python
|
||||||
|
@ -64,48 +64,48 @@ jobs:
|
||||||
- stage: 'unit tests - osx'
|
- stage: 'unit tests - osx'
|
||||||
os: osx
|
os: osx
|
||||||
language: generic
|
language: generic
|
||||||
env: [ TEST_SUITE=unit, PYTHON_VERSION=2.7, COVERAGE=true ]
|
env: [ TEST_SUITE=unit, PYTHON_VERSION=2.7 ]
|
||||||
# mpich (AutotoolsPackage)
|
# mpich (AutotoolsPackage)
|
||||||
- stage: 'build tests'
|
- stage: 'build tests'
|
||||||
python: '2.7'
|
python: '2.7'
|
||||||
os: linux
|
os: linux
|
||||||
language: python
|
language: python
|
||||||
env: [ TEST_SUITE=build, COVERAGE=true, 'SPEC=mpich' ]
|
env: [ TEST_SUITE=build, 'SPEC=mpich' ]
|
||||||
# astyle (MakefilePackage)
|
# astyle (MakefilePackage)
|
||||||
- python: '2.7'
|
- python: '2.7'
|
||||||
os: linux
|
os: linux
|
||||||
language: python
|
language: python
|
||||||
env: [ TEST_SUITE=build, COVERAGE=true, 'SPEC=astyle' ]
|
env: [ TEST_SUITE=build, 'SPEC=astyle' ]
|
||||||
# tut (WafPackage)
|
# tut (WafPackage)
|
||||||
- python: '2.7'
|
- python: '2.7'
|
||||||
os: linux
|
os: linux
|
||||||
language: python
|
language: python
|
||||||
env: [ TEST_SUITE=build, COVERAGE=true, 'SPEC=tut' ]
|
env: [ TEST_SUITE=build, 'SPEC=tut' ]
|
||||||
# py-setuptools (PythonPackage)
|
# py-setuptools (PythonPackage)
|
||||||
- python: '2.7'
|
- python: '2.7'
|
||||||
os: linux
|
os: linux
|
||||||
language: python
|
language: python
|
||||||
env: [ TEST_SUITE=build, COVERAGE=true, 'SPEC=py-setuptools' ]
|
env: [ TEST_SUITE=build, 'SPEC=py-setuptools' ]
|
||||||
# perl-dbi (PerlPackage)
|
# perl-dbi (PerlPackage)
|
||||||
# - python: '2.7'
|
# - python: '2.7'
|
||||||
# os: linux
|
# os: linux
|
||||||
# language: python
|
# language: python
|
||||||
# env: [ TEST_SUITE=build, COVERAGE=true, 'SPEC=perl-dbi' ]
|
# env: [ TEST_SUITE=build, 'SPEC=perl-dbi' ]
|
||||||
# openjpeg (CMakePackage + external cmake)
|
# openjpeg (CMakePackage + external cmake)
|
||||||
- python: '2.7'
|
- python: '2.7'
|
||||||
os: linux
|
os: linux
|
||||||
language: python
|
language: python
|
||||||
env: [ TEST_SUITE=build, COVERAGE=true, 'SPEC=openjpeg' ]
|
env: [ TEST_SUITE=build, 'SPEC=openjpeg' ]
|
||||||
# r-rcpp (RPackage + external R)
|
# r-rcpp (RPackage + external R)
|
||||||
- python: '2.7'
|
- python: '2.7'
|
||||||
os: linux
|
os: linux
|
||||||
language: python
|
language: python
|
||||||
env: [ TEST_SUITE=build, COVERAGE=true, 'SPEC=r-rcpp' ]
|
env: [ TEST_SUITE=build, 'SPEC=r-rcpp' ]
|
||||||
# mpich (AutotoolsPackage)
|
# mpich (AutotoolsPackage)
|
||||||
- python: '3.6'
|
- python: '3.6'
|
||||||
os: linux
|
os: linux
|
||||||
language: python
|
language: python
|
||||||
env: [ TEST_SUITE=build, COVERAGE=true, 'SPEC=mpich' ]
|
env: [ TEST_SUITE=build, 'SPEC=mpich' ]
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- dist: xenial
|
- dist: xenial
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ before_script:
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
script:
|
script:
|
||||||
- share/spack/qa/run-$TEST_SUITE-tests
|
- share/spack/qa/run-$TEST_SUITE-tests
|
||||||
- if [[ "$COVERAGE" == "true" ]]; then codecov --env PYTHON_VERSION --required --flags "${TEST_SUITE}${TRAVIS_OS_NAME}"; fi
|
- if [[ "$TEST_SUITE" == "unit" || "$TEST_SUITE" == "build" ]]; then codecov --env PYTHON_VERSION --required --flags "${TEST_SUITE}${TRAVIS_OS_NAME}"; fi
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
# Notifications
|
# Notifications
|
||||||
|
|
|
@ -11,7 +11,7 @@ SPACK_ROOT="$QA_DIR/../../.."
|
||||||
. "$SPACK_ROOT/share/spack/setup-env.sh"
|
. "$SPACK_ROOT/share/spack/setup-env.sh"
|
||||||
|
|
||||||
# Set up some variables for running coverage tests.
|
# Set up some variables for running coverage tests.
|
||||||
if [[ "$COVERAGE" == true ]]; then
|
if [[ "$TEST_SUITE" == "unit" || "$TEST_SUITE" == "build" ]]; then
|
||||||
coverage=coverage
|
coverage=coverage
|
||||||
coverage_run="coverage run"
|
coverage_run="coverage run"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue