From 1687892d63fdff7525bb50a0166db3c5214ce2de Mon Sep 17 00:00:00 2001 From: Zsolt Dollenstein Date: Fri, 1 Jun 2018 23:12:20 +0100 Subject: [PATCH] don't run tests from /build --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 77cdbc4..1b95686 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: -- 2.39.5