Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 46f8cad

Browse filesBrowse files
authored
Merge pull request #11056 from anntzer/simplertravis
Simplify travis setup a bit.
2 parents 89f38ae + 4b19b89 commit 46f8cad
Copy full SHA for 46f8cad

File tree

Expand file treeCollapse file tree

6 files changed

+53
-71
lines changed
Filter options
Expand file treeCollapse file tree

6 files changed

+53
-71
lines changed

‎.appveyor.yml

Copy file name to clipboardExpand all lines: .appveyor.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ install:
8383
- del %LIBRARY_LIB%\z.lib
8484
- set MPLBASEDIRLIST=%CONDA_PREFIX%\Library\;.
8585
# enables the local freetype build
86-
- copy ci\travis\setup.cfg .
86+
- set MPLLOCALFREETYPE=1
8787
# Show the installed packages + versions
8888
- conda list
8989

‎.travis.yml

Copy file name to clipboardExpand all lines: .travis.yml
+52-48Lines changed: 52 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,18 @@ env:
5959
- PYTEST_COV=pytest-cov
6060
- PYTEST_PEP8=
6161
- SPHINX=sphinx
62+
# Variables controlling the build.
63+
- MPLLOCALFREETYPE=1
6264
# Variables controlling the test run.
6365
- DELETE_FONT_CACHE=
6466
- NO_AT_BRIDGE=1 # Necessary for GTK3 interactive test.
67+
# The number of processes is hardcoded, because using too many causes the
68+
# Travis VM to run out of memory (since so many copies of inkscape and
69+
# ghostscript are running at the same time).
6570
- NPROC=2
6671
- OPENBLAS_NUM_THREADS=1
6772
- PYTHONFAULTHANDLER=1
68-
- PYTEST_ARGS="-rawR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
69-
- PYTHON_ARGS=
73+
- PYTEST_ADDOPTS="-rawR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
7074
- RUN_PEP8=
7175

7276
matrix:
@@ -84,9 +88,14 @@ matrix:
8488
- PYTEST_COV=pytest-cov==2.3.1
8589
- SPHINX=sphinx==1.3
8690
- python: 3.5
87-
env: PYTHON_ARGS=-OO
91+
env:
92+
# - PYTHONOPTIMIZE=2 # This currently doesn't work.
8893
- python: 3.6
89-
env: DELETE_FONT_CACHE=1 PANDAS='pandas<0.21.0' PYTEST_PEP8=pytest-pep8 RUN_PEP8=--pep8
94+
env:
95+
- DELETE_FONT_CACHE=1
96+
- PANDAS='pandas<0.21.0'
97+
- PYTEST_PEP8=pytest-pep8
98+
- PYTEST_ADDOPTS="$PYTEST_ADDOPTS --pep8"
9099
- python: "nightly"
91100
env: PRE=--pre
92101
- os: osx
@@ -104,25 +113,22 @@ matrix:
104113
allow_failures:
105114
- python: "nightly"
106115

107-
before_install:
108-
- |
109-
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
110-
# test with non-ascii in path
111-
mkdir /tmp/λ
112-
export PATH=$PATH:/tmp/λ
113-
export PATH=/usr/lib/ccache:$PATH
114-
else
115-
ci/travis/silence brew update
116-
brew upgrade python
117-
brew install ffmpeg imagemagick mplayer ccache
118-
hash -r
119-
which python
120-
python --version
121-
# We could install ghostscript and inkscape here to test svg and pdf
122-
# but this makes the test time really long.
123-
# brew install ghostscript inkscape
124-
export PATH=/usr/local/opt/python/libexec/bin:/usr/local/opt/ccache/libexec:$PATH
125-
fi
116+
before_install: |
117+
# test with non-ascii in path
118+
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
119+
export PATH=/usr/lib/ccache:$PATH
120+
else
121+
ci/silence brew update
122+
brew upgrade python
123+
brew install ffmpeg imagemagick mplayer ccache
124+
hash -r
125+
which python
126+
python --version
127+
# We could install ghostscript and inkscape here to test svg and pdf
128+
# but this makes the test time really long.
129+
# brew install ghostscript inkscape
130+
export PATH=/usr/local/opt/python/libexec/bin:/usr/local/opt/ccache/libexec:$PATH
131+
fi
126132
127133
install:
128134
- |
@@ -141,8 +147,6 @@ install:
141147
$NOSE \
142148
$NUMPY \
143149
$PANDAS \
144-
codecov \
145-
coverage \
146150
pillow \
147151
$PYPARSING \
148152
$SPHINX \
@@ -175,34 +179,34 @@ install:
175179
pytest-rerunfailures \
176180
pytest-timeout \
177181
pytest-xdist
178-
179-
# Use the special local version of freetype for testing
180-
cp ci/travis/setup.cfg .
181182
- |
182183
# Install matplotlib
183184
python -mpip install -ve .
184185
185-
before_script:
186-
- |
187-
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
188-
export DISPLAY=:99.0
189-
sh -e /etc/init.d/xvfb start
190-
fi
186+
before_script: |
187+
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
188+
export DISPLAY=:99.0
189+
sh -e /etc/init.d/xvfb start
190+
fi
191+
if [[ $DELETE_FONT_CACHE == 1 ]]; then
192+
rm -rf ~/.cache/matplotlib
193+
fi
191194
192-
script: ci/travis/test_script.sh
195+
script: |
196+
echo "Calling pytest with the following arguments: $PYTEST_ADDOPTS"
197+
python -mpytest
193198
194-
before_cache:
195-
- rm -rf $HOME/.cache/matplotlib/tex.cache
196-
- rm -rf $HOME/.cache/matplotlib/test_cache
199+
before_cache: |
200+
rm -rf $HOME/.cache/matplotlib/tex.cache
201+
rm -rf $HOME/.cache/matplotlib/test_cache
197202
198-
after_failure:
199-
- |
200-
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]]; then
201-
tar cjf result_images.tar.bz2 result_images
202-
echo 'See "Uploading Artifacts" near the end of the log for the download URL'
203-
else
204-
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."
205-
fi
203+
after_failure: |
204+
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]]; then
205+
tar cjf result_images.tar.bz2 result_images
206+
echo 'See "Uploading Artifacts" near the end of the log for the download URL'
207+
else
208+
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."
209+
fi
206210
207-
after_success:
208-
- codecov -e TRAVIS_PYTHON_VERSION
211+
after_success: |
212+
codecov -e TRAVIS_PYTHON_VERSION
File renamed without changes.

‎ci/travis/matplotlibDeployKey.enc

Copy file name to clipboard
-1.64 KB
Binary file not shown.

‎ci/travis/setup.cfg

Copy file name to clipboardExpand all lines: ci/travis/setup.cfg
-2Lines changed: 0 additions & 2 deletions
This file was deleted.

‎ci/travis/test_script.sh

Copy file name to clipboardExpand all lines: ci/travis/test_script.sh
-20Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.