test_script.sh 589 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # Based on a script from scikit-learn
  3. # This script is meant to be called by the "script" step defined in
  4. # .travis.yml. See http://docs.travis-ci.com/ for more details.
  5. # The behavior of the script is controlled by environment variables defined
  6. # in the .travis.yml in the top level folder of the project.
  7. set -e
  8. python --version
  9. python -c "import numpy; print('numpy %s' % numpy.__version__)"
  10. python -c "import scipy; print('scipy %s' % scipy.__version__)"
  11. if [[ "$COVERAGE" == "true" ]]; then
  12. nosetests --with-coverage --cover-package=elephant
  13. else
  14. nosetests
  15. fi