OpenMC/tools/ci/travis-script.sh

15 lines
310 B
Bash
Raw Normal View History

#!/bin/bash
set -ex
# 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
fi
# Run regression and unit tests
if [[ $MPI == 'y' ]]; then
2018-02-02 09:46:16 -06:00
pytest --cov=openmc -v --mpi tests
else
2018-02-02 09:46:16 -06:00
pytest --cov=openmc -v tests
fi