test_script.sh 703 B

1234567891011121314151617181920212223
  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. if [[ "$MPI" == "true" ]]; then
  13. mpiexec -n 1 nosetests --with-coverage --cover-package=elephant
  14. else
  15. nosetests --with-coverage --cover-package=elephant
  16. fi
  17. else
  18. nosetests
  19. fi