.travis.yml uses a script now.
- user can run the same script.
This commit is contained in:
parent
d7847ff768
commit
f158375054
1 changed files with 2 additions and 15 deletions
17
.travis.yml
17
.travis.yml
|
@ -29,21 +29,8 @@ script:
|
|||
# Run unit tests with code coverage
|
||||
- coverage run bin/spack test
|
||||
|
||||
# Check if changed files are flake8 conformant [framework]
|
||||
- changed=$(git diff --name-only develop... | grep '.py$' | grep -v ^var/)
|
||||
- [[ $changed ]] && \
|
||||
flake8 --format pylint --config share/spack/qa/flake8-framework $changed
|
||||
|
||||
# Check if changed files are flake8 conformant [packages]
|
||||
- changed=$(git diff --name-only develop... | grep '.py$' | grep ^var/)
|
||||
|
||||
# Exempt url lines in changed packages from overlong errors.
|
||||
- for file in $changed; do \
|
||||
[[ file = *package.py ]] && \
|
||||
perl -i~ -pe 's/^(\s*url\s*=.*)$/\1 # NOQA/' $file; \
|
||||
done
|
||||
- [[ $changed ]] && \
|
||||
flake8 --format pylint --config share/spack/qa/flake8-packages $changed
|
||||
# Run flake8 code style checks.
|
||||
- share/spack/qa/run-flake8
|
||||
|
||||
after_success:
|
||||
- coveralls
|
||||
|
|
Loading…
Reference in a new issue