123456789101112131415161718192021222324252627 |
- #!/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 $?
|