8000 Merge pull request #4667 from jenshnielsen/travis_mock_version · matplotlib/matplotlib@20e297f · GitHub
[go: up one dir, main page]

Skip to content

Commit 20e297f

Browse files
committed
Merge pull request #4667 from jenshnielsen/travis_mock_version
Install latest version of mock on python 2.7
2 parents 9f2a1f1 + 4542ee3 commit 20e297f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.travis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ language: python
3434
matrix:
3535
include:
3636
- python: 2.6
37-
env: NUMPY=numpy==1.6 MOCK=true
37+
env: NUMPY=numpy==1.6 MOCK=mock==1.0.1
3838
- python: 2.7
39-
env: MOCK=true
39+
env: MOCK=mock
4040
- python: 3.3
4141
- python: 3.4
4242
- python: 2.7
4343
env: TEST_ARGS=--pep8
4444
- python: 2.7
45-
env: BUILD_DOCS=true MOCK=true
45+
env: BUILD_DOCS=true MOCK=mock
4646
- python: "nightly"
4747
env: PRE=--pre
4848
allow_failures:
@@ -64,11 +64,12 @@ install:
6464
# Always install from pypi
6565
- pip install $PRE nose pep8
6666

67-
# Install mock on python 2. We limit to 1.0.1 at the moment
68-
# https://github.com/matplotlib/matplotlib/issues/4613
67+
# Install mock on python 2. Python 2.6 requires mock 1.0.1
68+
# Since later versions have dropped support
6969
- |
70-
if [[ $MOCK == true ]]; then
71-
pip install mock==1.0.1
70+
if [[ -n "$MOCK" ]]; then
71+
echo $MOCK
72+
pip install $MOCK
7273
fi;
7374
# We manually install humor sans using the package from Ubuntu 14.10. Unfortunatly humor sans is not
7475
# availible in the Ubuntu version used by Travis but we can manually install the deb from a later

0 commit comments

Comments
 (0)
0