PyMISP/travis/test_travis.sh

12 lines
315 B
Bash
Raw Normal View History

2019-04-25 11:45:46 +02:00
#!/usr/bin/env bash
set -e
set -x
if [ -z ${LEGACY} ]; then
# We're in python3, test all and use pipenv.
pipenv run nosetests-3.4 --with-coverage --cover-package=pymisp,tests --cover-tests tests/test_*.py
else
nosetests --with-coverage --cover-package=pymisp,tests --cover-tests tests/test_offline.py
fi