OpenMC/tools/ci/travis-script.sh
2018-02-05 07:35:48 -06:00

14 lines
310 B
Bash
Executable file

#!/bin/bash
set -ex
# Run source check
if [[ $TRAVIS_PYTHON_VERSION == "3.4" && $OMP == 'n' && $MPI == 'n' ]]; then
pushd tests && python check_source.py && popd
fi
# Run regression and unit tests
if [[ $MPI == 'y' ]]; then
pytest --cov=openmc -v --mpi tests
else
pytest --cov=openmc -v tests
fi