Skip to content
Snippets Groups Projects
Commit e60f25f2 authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Move args to .coveragerc

parent d3ade02c
No related branches found
No related tags found
No related merge requests found
# -*- conf -*-
# .coveragerc to control coverage.py # .coveragerc to control coverage.py
[run] [run]
branch = True branch = True
source = lib
omit =
lib/spack/spack/test/*
lib/spack/env/*
lib/spack/docs/*
lib/spack/external/*
[report] [report]
# Regexes for lines to exclude from consideration # Regexes for lines to exclude from consideration
......
...@@ -24,9 +24,9 @@ script: ...@@ -24,9 +24,9 @@ script:
- spack config get compilers - spack config get compilers
- spack install -v libdwarf - spack install -v libdwarf
# Run unit tests with code coverage # Run unit tests with code coverage
- coverage run --source=lib --omit=lib/spack/spack/test/*,lib/spack/env/*,lib/spack/docs/*,lib/spack/external/* bin/spack test - coverage run bin/spack test
# Checks if the file that have been changed are flake8 conformant # Checks if the file that have been changed are flake8 conformant
- CHANGED_PYTHON_FILES=`git diff develop... --name-only | perl -ne 'print if /\.py/g'` - CHANGED_PYTHON_FILES=`git diff develop... --name-only | perl -ne 'print if /\.py$/'`
- if [[ ${CHANGED_PYTHON_FILES} ]] ; then flake8 --format pylint --config flake8.ini ${CHANGED_PYTHON_FILES} ; fi - if [[ ${CHANGED_PYTHON_FILES} ]] ; then flake8 --format pylint --config flake8.ini ${CHANGED_PYTHON_FILES} ; fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment