Skip to content

Commit

Permalink
Run tests from root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano committed Feb 5, 2018
1 parent bc4c7d9 commit c710184
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ before_script:
script:
- ./tools/ci/travis-script.sh
after_success:
- coveralls -d tests/.coverage
- coveralls
7 changes: 3 additions & 4 deletions tools/ci/travis-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c710184

Please sign in to comment.