Error out when tests fail

This commit is contained in:
Sebastián Ramírez 2018-12-09 19:56:37 +04:00
parent e206758ff7
commit ea8b1a50f1
1 changed files with 4 additions and 2 deletions

View File

@ -1,9 +1,11 @@
#!/bin/sh -e
#!/usr/bin/env bash
set -e
set -x
export VERSION_SCRIPT="import sys; print('%s.%s' % sys.version_info[0:2])"
export PYTHON_VERSION=`python -c "$VERSION_SCRIPT"`
set -x
PYTHONPATH=. pytest --cov=fastapi --cov=tests --cov-fail-under=100 --cov-report=term-missing ${@} --cov-report=html
mypy fastapi --disallow-untyped-defs