You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .travis.yml
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ addons:
32
32
- gir1.2-gtk-3.0
33
33
- graphviz
34
34
- inkscape
35
+
- lcov
35
36
- libcairo2
36
37
- libcairo2-dev
37
38
- libffi-dev
@@ -158,9 +159,18 @@ install:
158
159
echo 'wxPython is available' ||
159
160
echo 'wxPython is not available'
160
161
162
+
# Set flag in a delayed manner to avoid issues with installing other packages
163
+
- |
164
+
if [[ $TRAVIS_OS_NAME != 'osx' ]] && [[ $RUN_PYTEST == 1 ]]; then
165
+
export CPPFLAGS=--coverage
166
+
fi
161
167
- |
162
168
# Install matplotlib
163
169
python -mpip install -ve .
170
+
- |
171
+
if [[ $TRAVIS_OS_NAME != 'osx' ]] && [[ $RUN_PYTEST == 1 ]]; then
172
+
unset CPPFLAGS
173
+
fi
164
174
165
175
before_script: |
166
176
if [[ $DELETE_FONT_CACHE == 1 ]]; then
@@ -193,5 +203,9 @@ after_failure: |
193
203
echo "The result images will only be uploaded if they are on the matplotlib/matplotlib repo - this is for security reasons to prevent arbitrary PRs echoing security details."
0 commit comments