From 422c37e3b82359b81f842444cc1373a5c6b5b304 Mon Sep 17 00:00:00 2001 From: Aidan Heerdegen Date: Thu, 14 May 2020 15:22:36 +1000 Subject: [PATCH 1/2] Added some debugging to check .coverage file persists --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 84c2a591..56891def 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,8 @@ script: - payu list - pylint --extension-pkg-whitelist=netCDF4 -E payu - if [[ $TRAVIS_PYTHON_VERSION == 3.6 || $TRAVIS_PYTHON_VERSION == 3.7 ]]; then PYTHONPATH=. pytest --cov=payu -s test; fi; + - ls -l .coverage - cd docs && make html after_success: + - ls -l .coverage - if [[ $TRAVIS_PYTHON_VERSION == 3.6 || $TRAVIS_PYTHON_VERSION == 3.7 ]]; then coveralls; fi; From 84c04b34cb3e2cf0caf8102c5f296ced83714228 Mon Sep 17 00:00:00 2001 From: Aidan Heerdegen Date: Thu, 14 May 2020 15:37:06 +1000 Subject: [PATCH 2/2] Move coveralls into script job as data does not persist to after_success --- .travis.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 56891def..8445e64d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,8 +15,5 @@ script: - payu list - pylint --extension-pkg-whitelist=netCDF4 -E payu - if [[ $TRAVIS_PYTHON_VERSION == 3.6 || $TRAVIS_PYTHON_VERSION == 3.7 ]]; then PYTHONPATH=. pytest --cov=payu -s test; fi; - - ls -l .coverage - - cd docs && make html -after_success: - - ls -l .coverage - if [[ $TRAVIS_PYTHON_VERSION == 3.6 || $TRAVIS_PYTHON_VERSION == 3.7 ]]; then coveralls; fi; + - cd docs && make html