You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
512 B

  1. #!/bin/bash
  2. set -e
  3. if which virtualenv >/dev/null; then
  4. echo
  5. else
  6. sudo easy_install "virtualenv>=1.8.4"
  7. if [ $? -ne 0 ]; then
  8. echo "failed to install virtualenv, you'll have to fix this yourself"
  9. exit 1
  10. fi
  11. fi
  12. if [ -z "$VIRTUAL_ENV" ]
  13. then
  14. virtualenv .tox/tox
  15. cd .tox/tox
  16. source bin/activate
  17. #exit 1
  18. fi
  19. if [ -z "$VIRTUAL_ENV" ]
  20. then
  21. echo This script should only be run inside a virtual_env.
  22. exit 1
  23. fi
  24. pip install tox --upgrade -v
  25. # pytest pytest-cov
  26. tox -v