|
5 | 5 | - $HOME/.ccache
|
6 | 6 | - $HOME/.cache/pip
|
7 | 7 | - $HOME/.cache/matplotlib
|
| 8 | + - $HOME/Library/Caches/pip |
8 | 9 |
|
9 | 10 | addons:
|
10 | 11 | apt:
|
@@ -58,16 +59,29 @@ matrix:
|
58 | 59 | env: BUILD_DOCS=true
|
59 | 60 | - python: "nightly"
|
60 | 61 | env: PRE=--pre
|
| 62 | + - os: osx |
| 63 | + osx_image: xcode7.3 |
| 64 | + language: generic |
| 65 | + env: MOCK=mock NOSE_ARGS= |
61 | 66 | allow_failures:
|
62 | 67 | - python: "nightly"
|
63 | 68 |
|
64 | 69 | before_install:
|
65 | 70 | - |
|
66 | 71 | # Install into our own pristine virtualenv
|
67 |
| - source ci/travis/travis_tools.sh |
68 |
| - virtualenv --python=python venv |
69 |
| - source venv/bin/activate |
70 |
| - export PATH=/usr/lib/ccache:$PATH |
| 72 | + if [[ $TRAVIS_OS_NAME != 'osx' ]]; then |
| 73 | + virtualenv --python=python venv |
| 74 | + source venv/bin/activate |
| 75 | + export PATH=/usr/lib/ccache:$PATH |
| 76 | + else |
| 77 | + brew update |
| 78 | + brew tap homebrew/gui |
| 79 | + brew install python libpng ffmpeg imagemagick mplayer ccache |
| 80 | + # We could install ghostscript and inkscape here to test svg and pdf |
| 81 | + # but this makes the test time really long. |
| 82 | + # brew install ghostscript inkscape |
| 83 | + export PATH=/usr/local/opt/ccache/libexec:$PATH |
| 84 | + fi |
71 | 85 |
|
72 | 86 | install:
|
73 | 87 | - |
|
@@ -123,7 +137,11 @@ script:
|
123 | 137 | echo The following args are passed to nose $NOSE_ARGS
|
124 | 138 | if [[ $BUILD_DOCS == false ]]; then
|
125 | 139 | export MPL_REPO_DIR=$PWD # needed for pep8-conformance test of the examples
|
126 |
| - gdb -return-child-result -batch -ex r -ex bt --args python tests.py $NOSE_ARGS $TEST_ARGS |
| 140 | + if [[ $TRAVIS_OS_NAME == 'osx' ]]; then |
| 141 | + python tests.py $NOSE_ARGS $TEST_ARGS |
| 142 | + else |
| 143 | + gdb -return-child-result -batch -ex r -ex bt --args python tests.py $NOSE_ARGS $TEST_ARGS |
| 144 | + fi |
127 | 145 | else
|
128 | 146 | cd doc
|
129 | 147 | python make.py html --small
|
@@ -177,21 +195,6 @@ after_success:
|
177 | 195 | else
|
178 | 196 | echo "Will only deploy docs build from matplotlib master branch"
|
179 | 197 | fi
|
180 |
| - if [[ $TRAVIS_PULL_REQUEST == false ]] && \ |
181 |
| - [[ $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]] && \ |
182 |
| - [[ $TRAVIS_BRANCH == 'master' ]]; then |
183 |
| - cd $TRAVIS_BUILD_DIR |
184 |
| - python ci/travis/travis_after_all.py |
185 |
| - export $(cat .to_export_back) |
186 |
| - if [ "$BUILD_LEADER" = "YES" ]; then |
187 |
| - if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then |
188 |
| - echo "All Succeeded! Triggering OSX build..." |
189 |
| - ./ci/travis/build_children.sh |
190 |
| - else |
191 |
| - echo "Some Failed; no OSX build" |
192 |
| - fi |
193 |
| - fi |
194 |
| - fi |
195 | 198 | if [[ $NOSE_ARGS="--with-coverage" ]]; then
|
196 | 199 | coveralls
|
197 | 200 | fi
|
0 commit comments