Skip to content

Commit

Permalink
Make Travis run our examples as tests again.
Browse files Browse the repository at this point in the history
This was accidentally disabled when we removed the soft link
from src to examples.  Since then the tests haven't been running.
  • Loading branch information
ketch committed Oct 7, 2019
1 parent a9d93c4 commit 6fbbc9f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions run_tests_on_travis.sh
Expand Up @@ -11,19 +11,23 @@ cd src/pyclaw
if [ "${TEST_PACKAGE}" == "pyclaw" ]; then
# pyclaw doc-tests
nosetests --first-pkg-wins --with-doctest --exclude=limiters --exclude=sharpclaw --exclude=fileio --exclude=example --with-coverage --cover-package=clawpack.pyclaw;
mv .coverage temp;
mv .coverage .coverage.doctest;
# pyclaw examples and I/O tests
nosetests -v --first-pkg-wins --exclude=limiters --exclude=sharpclaw --with-coverage --cover-package=clawpack.pyclaw --include=IOTest;
mv temp .coverage.doctest;
cd ../../examples;
nosetests -v --with-coverage --cover-package=clawpack.pyclaw;
mv .coverage ../src/pyclaw/.coverage.examples;
cd ../src/pyclaw;
coverage combine;
fi

if [[ "${TEST_PACKAGE}" == "petclaw" ]]; then
# petclaw examples
mpirun -n 4 nosetests -v --first-pkg-wins --exclude=limiters --exclude=sharpclaw --exclude=fileio;
cd ../petclaw/tests;
# petclaw I/O tests
mpirun -n 4 nosetests -v --first-pkg-wins --include=IOTest;
# petclaw examples
cd ../../examples;
mpirun -n 4 nosetests -v --first-pkg-wins;
cd ../petclaw/tests;
fi

if [[ "${TEST_PACKAGE}" == "forestclaw" ]]; then
Expand Down

0 comments on commit 6fbbc9f

Please sign in to comment.