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.
 
 
 

22 lines
278 B

  1. #!/bin/bash
  2. set -e
  3. if [ -z "$VIRTUAL_ENV" ]
  4. then
  5. virtualenv .tox/tox
  6. cd .tox/tox
  7. source bin/activate
  8. #exit 1
  9. fi
  10. if [ -z "$VIRTUAL_ENV" ]
  11. then
  12. echo This script should only be run inside a virtual_env.
  13. exit 1
  14. fi
  15. pip install tox
  16. # pytest pytest-cov
  17. tox