2016-01-13 16:54:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# this is what .travis.yml and tox.ini use to run tests
|
|
|
|
|
|
|
|
set -ev
|
|
|
|
|
|
|
|
COV="--cov=bidict"
|
|
|
|
# With hypothesis>=1.19.0,
|
|
|
|
# data generation is so slow when using --cov
|
|
|
|
# that it can cause health checks to fail
|
|
|
|
# in slow environments such as Travis-CI
|
|
|
|
# with certain Python versions such as pypy.
|
|
|
|
# Don't pass --cov in these cases:
|
|
|
|
[[ $TRAVIS_PYTHON_VERSION =~ ^(3\.3|3\.4|pypy)$ ]] && COV=""
|
|
|
|
py.test $COV || FAILED=1
|
2016-02-02 17:31:36 +00:00
|
|
|
pydocstyle bidict || FAILED=1
|
2016-01-13 16:54:29 +00:00
|
|
|
exit $FAILED
|