Run tests from root directory

This commit is contained in:
Paul Romano 2018-02-02 09:46:16 -06:00
parent bc4c7d9372
commit c710184fba
2 changed files with 4 additions and 5 deletions

View file

@ -41,4 +41,4 @@ before_script:
script:
- ./tools/ci/travis-script.sh
after_success:
- coveralls -d tests/.coverage
- coveralls

View file

@ -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