mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-22 06:55:35 -04:00
14 lines
310 B
Bash
Executable file
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
|