From: Sebastián Ramírez Date: Tue, 18 Dec 2018 18:22:07 +0000 (+0400) Subject: :green_heart: Try fixing Travis, again... X-Git-Tag: 0.1.12~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bcb967f98ae1d130dbe505dc5ebdab83b48cc1ee;p=thirdparty%2Ffastapi%2Ffastapi.git :green_heart: Try fixing Travis, again... --- diff --git a/scripts/test.sh b/scripts/test.sh index 6cc01e3c02..f39b89ee78 100644 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -6,9 +6,9 @@ set -x export VERSION_SCRIPT="import sys; print('%s.%s' % sys.version_info[0:2])" export PYTHON_VERSION=`python -c "$VERSION_SCRIPT"` - +export PYTHONPATH=.:./docs/tutorial/src # PYTHONPATH=. pytest --cov=fastapi --cov=tests --cov-fail-under=100 --cov-report=term-missing ${@} --cov-report=html -PYTHONPATH=.:./docs/tutorial/src pipenv run -- pytest --cov=fastapi --cov=tests --cov=docs/tutorial/src --cov-report=term-missing ${@} --cov-report=html +pipenv run -- pytest --cov=fastapi --cov=tests --cov=docs/tutorial/src --cov-report=term-missing ${@} --cov-report=html pipenv run -- mypy fastapi --disallow-untyped-defs if [ "${PYTHON_VERSION}" = '3.7' ]; then echo "Skipping 'black' on 3.7. See issue https://github.com/ambv/black/issues/494"