mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Run tests from root directory
This commit is contained in:
parent
bc4c7d9372
commit
c710184fba
2 changed files with 4 additions and 5 deletions
|
|
@ -41,4 +41,4 @@ before_script:
|
|||
script:
|
||||
- ./tools/ci/travis-script.sh
|
||||
after_success:
|
||||
- coveralls -d tests/.coverage
|
||||
- coveralls
|
||||
|
|
|
|||
|
|
@ -2,14 +2,13 @@
|
|||
set -ex
|
||||
|
||||
# Run source check
|
||||
cd tests
|
||||
if [[ $TRAVIS_PYTHON_VERSION == "3.4" && $OMP == 'n' && $MPI == 'n' ]]; then
|
||||
./check_source.py
|
||||
pushd tests && python check_source.py && popd
|
||||
fi
|
||||
|
||||
# Run regression and unit tests
|
||||
if [[ $MPI == 'y' ]]; then
|
||||
pytest --cov=../openmc -v --mpi
|
||||
pytest --cov=openmc -v --mpi tests
|
||||
else
|
||||
pytest --cov=../openmc -v
|
||||
pytest --cov=openmc -v tests
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue