Add check for source format on Travis
Because the Travis configuration is relatively inflexible,
we just do this together with the unit tests and run it for every Python
version, although that would not be necessary.
Hopefully we can use GitLab CI for PRs soon.
@@ -9,6 +9,7 @@ python:
- "3.7"
install:
- pip install .
+ - pip install black
before_script:
- sudo ./.travis-setup.sh "$USER"
# Disable one specific test that often fails on Travis.
@@ -17,6 +18,7 @@ before_script:
- sed -i benchexec/test_integration/__init__.py -e '/test_simple_parallel/ i \ @unittest.skipIf(sys.version_info < (3,7), "Fails nondeterministically if load is high")'
script:
- python setup.py test
+ - black . --check --diff
notifications:
email:
- benchexec-dev@googlegroups.com
