]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:green_heart: Use pipenv in Travis
authorSebastián Ramírez <tiangolo@gmail.com>
Tue, 18 Dec 2018 18:08:47 +0000 (22:08 +0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Tue, 18 Dec 2018 18:08:47 +0000 (22:08 +0400)
.travis.yml
scripts/test.sh

index a6dc5a67559ccaa2a4f134bc8e1f3ae567b5594a..fd2fb48ece678c6a5234f45c996a4e0e5d8ee959 100644 (file)
@@ -7,8 +7,8 @@ python:
     - "3.7-dev"
 
 install:
-    - pip install flit
-    - flit install
+    - pip install pipenv
+    - pipenv install
 
 script:
     - bash scripts/test.sh
index a9a3406441497c10491ba233a6f14e6e44739afd..6cc01e3c028dbee8270f9cc02ddfe658e0c0baca 100644 (file)
@@ -8,11 +8,11 @@ export PYTHON_VERSION=`python -c "$VERSION_SCRIPT"`
 
 
 # PYTHONPATH=. pytest --cov=fastapi --cov=tests --cov-fail-under=100 --cov-report=term-missing ${@} --cov-report=html
-PYTHONPATH=.:./docs/tutorial/src pytest --cov=fastapi --cov=tests --cov=docs/tutorial/src --cov-report=term-missing ${@} --cov-report=html
-mypy fastapi --disallow-untyped-defs
+PYTHONPATH=.:./docs/tutorial/src 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"
 else
-    black fastapi tests --check
+    pipenv run -- black fastapi tests --check
 fi
-isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --check-only fastapi tests
+pipenv run -- isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --check-only fastapi tests