Skip to content

Commit

Permalink
MNT: Make CI services always upload coverage.
Browse files Browse the repository at this point in the history
This should fix codecov staying in pending state on failed builds
(Fixes Unidata#240)
  • Loading branch information
dopplershift committed Nov 21, 2016
1 parent 421fbc4 commit ce6f11f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -120,7 +120,7 @@ script:
python setup.py test --addopts "$TEST_OPTS";
fi

after_success:
after_script:
- if [[ $TASK == "coverage" ]]; then
pip install codecov codacy-coverage codeclimate-test-reporter;
codecov -e TRAVIS_PYTHON_VERSION;
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Expand Up @@ -41,10 +41,10 @@ test_script:
- cmd: set TEST_DATA_DIR=%APPVEYOR_BUILD_FOLDER%\\testdata
- cmd: if %PYTHON_VERSION% == 2.7 find examples\notebooks -name "*.ipynb" -exec sed -i -e s/python3/python2/ {} ;
- cmd: python setup.py test --addopts "--junitxml=tests.xml --flake8 --mpl --cov=metpy"
- ps: $wc = New-Object 'System.Net.WebClient'
- ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\tests.xml))
- cmd: find examples\notebooks\ -name "*.ipynb" -print0 | xargs -0 -n1 jupyter nbconvert --execute --ExecutePreprocessor.timeout=200 --ExecutePreprocessor.kernel_name=devel --inplace

after_test:
on_finish:
- ps: $wc = New-Object 'System.Net.WebClient'
- ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\tests.xml))
- cmd: pip install codecov
- cmd: codecov -e PYTHON_VERSION PLATFORM

0 comments on commit ce6f11f

Please sign in to comment.