don't run tests from /build

This commit is contained in:
Zsolt Dollenstein 2018-06-01 23:12:20 +01:00
parent ef903ecd46
commit 1687892d63

View File

@ -9,7 +9,9 @@ install:
- pip install coverage coveralls flake8 flake8-bugbear mypy
- pip install -e .
script:
- coverage run tests/test_black.py
- sudo mkdir -p /black
- sudo mount --bind $(pwd) /black
- coverage run /black/tests/test_black.py
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then mypy black.py tests/test_black.py; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.6-dev' ]]; then flake8 black.py tests/test_black.py; fi
after_success: