Skip to content

Pin OSX CI to numpy<1.15 to unbreak the build. #11763

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 22 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ env:
- secure: dfjNqGKzQG5bu3FnDNwLG8H/C4QoieFo4PfFmZPdM2RY7WIzukwKFNT6kiDfOrpwt+2bR7FhzjOGlDECGtlGOtYPN8XuXGjhcP4a4IfakdbDfF+D3NPIpf5VlE6776k0VpvcZBTMYJKNFIMc7QPkOwjvNJ2aXyfe3hBuGlKJzQU=
# Variables controlling the build.
- MPLLOCALFREETYPE=1
# Variable for the location of an extra pip requirement file
# Variable for the location of an extra pip requirements file.
- EXTRAREQS=
# Variable for the location of a pip version file
# Variable for the location of a pip constraints file.
- PINNEDVERS=
# Variables controlling the test run.
- DELETE_FONT_CACHE=
Expand All @@ -69,39 +69,40 @@ env:
matrix:
include:
- python: 3.5
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124.
env:
- PINNEDVERS='-c requirements/testing/travis35.txt'
- PINNEDVERS='-c requirements/testing/pin-oldest.txt'
- python: 3.5
env:
# - PYTHONOPTIMIZE=2 # This currently doesn't work.
- python: 3.6
env:
- DELETE_FONT_CACHE=1
- EXTRAREQS='-r requirements/testing/travis36.txt'
- EXTRAREQS='-r requirements/testing/extras.txt'
- RUN_FLAKE8=1
- python: "nightly"
env: PRE=--pre
env:
- PRE=--pre
- os: osx
language: generic # https://github.com/travis-ci/travis-ci/issues/2312
only: master
cache:
# As for now travis caches only "$HOME/.cache/pip"
# As for now travis caches only "$HOME/.cache/pip".
# https://docs.travis-ci.com/user/caching/#pip-cache
pip: false
directories:
- $HOME/Library/Caches/pip
# `cache` does not support `env`-like `global` so copy-paste from top
# `cache` does not support `env`-like `global` so copy-paste from top.
- $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853
- $HOME/.cache/matplotlib
allow_failures:
- python: "nightly"

before_install: |
# test with non-ascii in path
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
case "$TRAVIS_OS_NAME" in
linux)
export PATH=/usr/lib/ccache:$PATH
else
;;
osx)
ci/silence brew update
brew upgrade python
brew install ffmpeg imagemagick mplayer ccache
Expand All @@ -112,7 +113,8 @@ before_install: |
# but this makes the test time really long.
# brew install ghostscript inkscape
export PATH=/usr/local/opt/python/libexec/bin:/usr/local/opt/ccache/libexec:$PATH
fi
;;
esac

install:
- |
Expand All @@ -123,7 +125,10 @@ install:
python -mpip install --upgrade pip setuptools wheel
- |
# Install dependencies from PyPI.
python -mpip install --upgrade $PRE -r requirements/testing/travis_all.txt $EXTRAREQS $PINNEDVERS
python -mpip install --upgrade $PRE -r requirements/testing/travis.txt $EXTRAREQS $PINNEDVERS
if [[ $TRAVIS_OS_NAME = 'osx' ]]; then
python -mpip install 'numpy<1.15' # Unbreak the OSX build for now.
fi
# GUI toolkits are pip-installable only for some versions of Python so
# don't fail if we can't install them. Make it easier to check whether the
# install was successful by trying to import the toolkit (sometimes, the
Expand All @@ -143,9 +148,8 @@ install:
python -c 'import wx' &&
echo 'wxPython is available' ||
echo 'wxPython is not available'

- |
# Install matplotlib
# Install matplotlib.
python -mpip install -ve .

before_script: |
Expand All @@ -158,8 +162,8 @@ before_script: |
fi

script:
# each script we want to run need to go in it's own section and the program you want
# to fail travis need to be the last thing called
# Each script we want to run need to go in its own section and the program
# you want to fail travis need to be the last thing called.
- |
echo "Calling pytest with the following arguments: $PYTEST_ADDOPTS"
python -mpytest
Expand All @@ -168,10 +172,8 @@ script:
flake8 --statistics && echo "Flake8 passed without any issues!"
fi


before_cache: |
rm -rf $HOME/.cache/matplotlib/tex.cache
rm -rf $HOME/.cache/matplotlib/test_cache
rm -rf $HOME/.cache/matplotlib/{test_cache,tex.cache}

after_failure: |
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]]; then
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Extra pip requirements for the travis python 3.6 build
# extra pip requirements for the 'full' travis build

flake8
flake8-per-file-ignores
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Extra pip requirements for the first travis python 3.5 build
# pip constraints for the first travis build, pinning to the oldest supported version

cycler==0.10
python-dateutil==2.1
numpy==1.10.0
pandas<0.21.0
pyparsing==2.0.1
pytest==3.4
pytest-cov==2.3.1
pytest-cov==2.3.1 # Due to https://github.com/pytest-dev/pytest-cov/issues/124.
pytest-timeout==1.2.1 # Newer pytest-timeouts don't support pytest 3.4.
sphinx==1.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pip requirements for all the travis builds
# pip requirements for all travis builds

codecov
coverage
Expand Down