travis.sh 546 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. rm -f .coverage
  3. sed -i 's/with-coverage=1/with-coverage=0/g' setup.cfg
  4. PYCHECK=$(python -c 'import sys; print(sys.version_info < (2, 7))')
  5. if [ "$PYCHECK" == "True" ]; then
  6. pip install argparse
  7. fi
  8. PYCHECK=$(python -c 'import sys; print(sys.version_info > (3, 0))')
  9. if [ "$PYCHECK" == "True" ]; then
  10. REQ_BASE='requirements-dev-py3'
  11. else
  12. REQ_BASE='requirements-dev'
  13. fi
  14. if [ "$(uname)" == 'Linux' ]; then
  15. pip install -r $REQ_BASE-linux.txt
  16. else
  17. pip install -r $REQ_BASE.txt
  18. fi
  19. python setup.py nosetests
  20. exit $?