OpenMC/tools/ci/travis-script.sh

14 lines
310 B
Bash
Executable file

#!/bin/bash
set -ex
# Run source check
if [[ $TRAVIS_PYTHON_VERSION == "3.5" && $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