mirror of
https://github.com/datafolklabs/cement.git
synced 2026-02-06 13:56:49 +00:00
27 lines
546 B
Bash
Executable File
27 lines
546 B
Bash
Executable File
#!/bin/bash
|
|
|
|
rm -f .coverage
|
|
sed -i 's/with-coverage=1/with-coverage=0/g' setup.cfg
|
|
|
|
PYCHECK=$(python -c 'import sys; print(sys.version_info < (2, 7))')
|
|
if [ "$PYCHECK" == "True" ]; then
|
|
pip install argparse
|
|
fi
|
|
|
|
PYCHECK=$(python -c 'import sys; print(sys.version_info > (3, 0))')
|
|
if [ "$PYCHECK" == "True" ]; then
|
|
REQ_BASE='requirements-dev-py3'
|
|
else
|
|
REQ_BASE='requirements-dev'
|
|
fi
|
|
|
|
if [ "$(uname)" == 'Linux' ]; then
|
|
pip install -r $REQ_BASE-linux.txt
|
|
else
|
|
pip install -r $REQ_BASE.txt
|
|
fi
|
|
|
|
python setup.py nosetests
|
|
exit $?
|
|
|