2017-12-14 15:03:39 +07:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -ex
|
2018-01-26 16:01:20 -06:00
|
|
|
|
|
|
|
|
# Run source check
|
|
|
|
|
if [[ $TRAVIS_PYTHON_VERSION == "3.4" && $OMP == 'n' && $MPI == 'n' ]]; then
|
2018-02-02 09:46:16 -06:00
|
|
|
pushd tests && python check_source.py && popd
|
2017-12-14 15:03:39 +07:00
|
|
|
fi
|
2018-01-26 16:01:20 -06:00
|
|
|
|
2018-01-29 13:46:40 -06:00
|
|
|
# Run regression and unit tests
|
|
|
|
|
if [[ $MPI == 'y' ]]; then
|
2018-02-02 09:46:16 -06:00
|
|
|
pytest --cov=openmc -v --mpi tests
|
2018-01-29 13:46:40 -06:00
|
|
|
else
|
2018-02-02 09:46:16 -06:00
|
|
|
pytest --cov=openmc -v tests
|
2018-01-29 13:46:40 -06:00
|
|
|
fi
|