summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-05-11 01:17:52 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-05-11 01:17:52 -0700
commitf15837505420e878e7b5ec2139686985deb54401 (patch)
tree2a4db569f13f08b84b82360e7ded72d91d58e908 /.travis.yml
parentd7847ff7685a52670a9d01cf39bd44eff1a57684 (diff)
downloadspack-f15837505420e878e7b5ec2139686985deb54401.tar.gz
spack-f15837505420e878e7b5ec2139686985deb54401.tar.bz2
spack-f15837505420e878e7b5ec2139686985deb54401.tar.xz
spack-f15837505420e878e7b5ec2139686985deb54401.zip
.travis.yml uses a script now.
- user can run the same script.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml17
1 files changed, 2 insertions, 15 deletions
diff --git a/.travis.yml b/.travis.yml
index 9acba991c7..904143a00f 100644
--- a/.travis.yml
+++ b/.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