|
53 | 53 | matrix: |
54 | 54 | include: |
55 | 55 | - python: 2.7 |
56 | | - env: MOCK=mock NUMPY=numpy==1.7.1 |
| 56 | + env: MOCK=mock NUMPY=numpy==1.7.1 PANDAS=pandas |
| 57 | + - python: 2.7 |
| 58 | + env: BUILD_DOCS=true |
57 | 59 | - python: 3.4 |
58 | 60 | env: PYTHON_ARGS=-OO |
59 | 61 | - python: 3.5 |
60 | 62 | env: BUILD_DOCS=true |
61 | | - - python: 3.5 |
62 | | - env: USE_PYTEST=true PANDAS=pandas DELETE_FONT_CACHE=1 |
63 | 63 | - python: 3.6 |
64 | 64 | env: USE_PYTEST=true DELETE_FONT_CACHE=1 INSTALL_PEP8=pytest-pep8 RUN_PEP8=--pep8 |
65 | 65 | - python: "nightly" |
@@ -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