File tree 4 files changed +33
-9
lines changed
4 files changed +33
-9
lines changed Original file line number Diff line number Diff line change 2
2
source =
3
3
matplotlib
4
4
mpl_toolkits
5
- [report]
6
- omit =
7
- lib/matplotlib/tests/*
8
- lib/matplotlib/testing/*
9
- lib/mpl_toolkits/tests/*
10
5
6
+ [report]
11
7
exclude_lines =
12
8
raise NotImplemented
13
9
def __str__
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ install:
113
113
pip install --upgrade setuptools
114
114
- |
115
115
# Install dependencies from pypi
116
- pip install $PRE python-dateutil $NUMPY pyparsing!=2.1.6 $PANDAS cycler coveralls coverage $MOCK
116
+ pip install $PRE python-dateutil $NUMPY pyparsing!=2.1.6 $PANDAS cycler codecov coverage $MOCK
117
117
pip install $PRE -r doc-requirements.txt
118
118
119
119
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
@@ -198,8 +198,7 @@ after_failure:
198
198
after_success :
199
199
- |
200
200
if [[ $BUILD_DOCS == false ]]; then
201
- coveralls
202
- bash <(curl -s https://codecov.io/bash)
201
+ codecov -e TRAVIS_PYTHON_VERSION
203
202
fi
204
203
- |
205
204
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' && $BUILD_DOCS == true && $TRAVIS_BRANCH == 'master' ]]; then
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ environment:
14
14
CMD_IN_ENV : " cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd"
15
15
# Workaround for https://github.com/conda/conda-build/issues/636
16
16
PYTHONIOENCODING : " UTF-8"
17
- PYTEST_ARGS : -ra --timeout=300 --durations=25 -n %NUMBER_OF_PROCESSORS% # --cov-report= --cov=lib
17
+ PYTEST_ARGS : -ra --timeout=300 --durations=25 -n %NUMBER_OF_PROCESSORS% --cov-report= --cov=lib
18
18
USE_PYTEST : no
19
19
PYTHONHASHSEED : 0 # Workaround for pytest-xdist flaky collection order
20
20
# https://github.com/pytest-dev/pytest/issues/920
@@ -140,6 +140,8 @@ test_script:
140
140
- if x%USE_PYTEST% == xno python tests.py %PYTEST_ARGS%
141
141
# Generate a html for visual tests
142
142
- python visual_tests.py
143
+ - if x%USE_PYTEST% == xyes pip install codecov
144
+ - if x%USE_PYTEST% == xyes codecov -e PYTHON_VERSION PLATFORM
143
145
144
146
after_test :
145
147
# After the tests were a success, build packages (wheels and conda)
@@ -175,6 +177,8 @@ artifacts:
175
177
name : result_images
176
178
type : zip
177
179
180
+ on_finish :
181
+
178
182
on_failure :
179
183
- python visual_tests.py
180
184
- echo zipping images after a failure...
Original file line number Diff line number Diff line change 1
1
# codecov can find this file anywhere in the repo, so we don't need to clutter
2
2
# the root folder.
3
3
comment : false
4
+
5
+ codecov :
6
+ notify :
7
+ require_ci_to_pass : no
8
+
9
+ coverage :
10
+ status :
11
+ patch :
12
+ default :
13
+ target : ' 80'
14
+ if_no_uploads : error
15
+ if_not_found : success
16
+ if_ci_failed : failure
17
+ project :
18
+ default : false
19
+ library :
20
+ target : auto
21
+ if_no_uploads : error
22
+ if_not_found : success
23
+ if_ci_failed : failure
24
+ paths : ' !lib/.*/tests/.*'
25
+
26
+ tests :
27
+ target : 97.7%
28
+ paths : ' lib/.*/tests/.*'
You can’t perform that action at this time.
0 commit comments