|
48 | 48 | - PYTEST_ARGS="-ra --maxfail=1 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
|
49 | 49 | - PYTHON_ARGS=
|
50 | 50 | - DELETE_FONT_CACHE=
|
51 |
| - - USE_PYTEST=false |
52 | 51 |
|
53 | 52 | matrix:
|
54 | 53 | include:
|
55 | 54 | - python: 2.7
|
56 |
| - env: MOCK=mock NUMPY=numpy==1.7.1 |
| 55 | + env: MOCK=mock NUMPY=numpy==1.7.1 PANDAS=pandas |
| 56 | + - python: 2.7 |
| 57 | + env: BUILD_DOCS=true |
57 | 58 | - python: 3.4
|
58 | 59 | env: PYTHON_ARGS=-OO
|
59 | 60 | - python: 3.5
|
60 | 61 | env: BUILD_DOCS=true
|
61 |
| - - python: 3.5 |
62 |
| - env: USE_PYTEST=true PANDAS=pandas DELETE_FONT_CACHE=1 |
63 | 62 | - python: 3.6
|
64 |
| - env: USE_PYTEST=true DELETE_FONT_CACHE=1 INSTALL_PEP8=pytest-pep8 RUN_PEP8=--pep8 |
| 63 | + env: DELETE_FONT_CACHE=1 INSTALL_PEP8=pytest-pep8 RUN_PEP8=--pep8 |
65 | 64 | - python: "nightly"
|
66 | 65 | env: PRE=--pre
|
67 | 66 | - os: osx
|
68 | 67 | osx_image: xcode7.3
|
69 | 68 | language: generic # https://github.com/travis-ci/travis-ci/issues/2312
|
70 | 69 | env: MOCK=mock
|
| 70 | + only: master |
71 | 71 | cache:
|
72 | 72 | # As for now travis caches only "$HOME/.cache/pip"
|
73 | 73 | # https://docs.travis-ci.com/user/caching/#pip-cache
|
@@ -138,47 +138,7 @@ install:
|
138 | 138 | # Install matplotlib
|
139 | 139 | pip install -ve .
|
140 | 140 |
|
141 |
| -script: |
142 |
| - # The number of processes is hardcoded, because using too many causes the |
143 |
| - # Travis VM to run out of memory (since so many copies of inkscape and |
144 |
| - # ghostscript are running at the same time). |
145 |
| - - | |
146 |
| - echo Testing import of tkagg backend |
147 |
| - MPLBACKEND="tkagg" python -c 'import matplotlib.pyplot as plt; print(plt.get_backend())' |
148 |
| - if [[ $BUILD_DOCS == false ]]; then |
149 |
| - if [[ $DELETE_FONT_CACHE == 1 ]]; then |
150 |
| - rm -rf ~/.cache/matplotlib |
151 |
| - fi |
152 |
| - # Workaround for pytest-xdist flaky collection order |
153 |
| - # https://github.com/pytest-dev/pytest/issues/920 |
154 |
| - # https://github.com/pytest-dev/pytest/issues/1075 |
155 |
| - export PYTHONHASHSEED=$(python -c 'import random; print(random.randint(1, 4294967295))') |
156 |
| - echo PYTHONHASHSEED=$PYTHONHASHSEED |
157 |
| -
|
158 |
| - echo The following args are passed to pytest $PYTEST_ARGS $RUN_PEP8 |
159 |
| - if [[ $USE_PYTEST == false ]]; then |
160 |
| - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then |
161 |
| - python tests.py $PYTEST_ARGS $RUN_PEP8 |
162 |
| - else |
163 |
| - gdb -return-child-result -batch -ex r -ex bt --args python $PYTHON_ARGS tests.py $PYTEST_ARGS $RUN_PEP8 |
164 |
| - fi |
165 |
| - else |
166 |
| - py.test $PYTEST_ARGS $RUN_PEP8 |
167 |
| - fi |
168 |
| - else |
169 |
| - cd doc |
170 |
| - python make.py html -n 2 |
171 |
| - # We don't build the LaTeX docs here, so linkchecker will complain |
172 |
| - touch build/html/Matplotlib.pdf |
173 |
| - # Linkchecker only works with python 2.7 for the time being |
174 |
| - deactivate |
175 |
| - source ~/virtualenv/python2.7/bin/activate |
176 |
| - pip install pip --upgrade |
177 |
| - # linkchecker is currently broken with requests 2.10.0 so force an earlier version |
178 |
| - pip install $PRE requests==2.9.2 linkchecker |
179 |
| - linkchecker build/html/index.html |
180 |
| - fi |
181 |
| -
|
| 141 | +script: source ci/travis/test_script.sh |
182 | 142 | before_cache:
|
183 | 143 | - rm -rf $HOME/.cache/matplotlib/tex.cache
|
184 | 144 | - rm -rf $HOME/.cache/matplotlib/test_cache
|
|
0 commit comments