|
24 | 24 | versionSpec: '$(python.version)'
|
25 | 25 | architecture: 'x64'
|
26 | 26 |
|
27 |
| - - script: python -m pip install --upgrade pip && pip install -r requirements/testing/travis_all.txt |
| 27 | + - script: | |
| 28 | +
|
| 29 | + python -m pip install --upgrade pip |
| 30 | + pip install -r requirements/testing/travis_all.txt -r requirements/testing/travis36.txt |
| 31 | + # GUI toolkits are pip-installable only for some versions of Python so |
| 32 | + # don't fail if we can't install them. Make it easier to check whether the |
| 33 | + # install was successful by trying to import the toolkit (sometimes, the |
| 34 | + # install appears to be successful but shared libraries cannot be loaded at |
| 35 | + # runtime, so an actual import is a better check). |
| 36 | + python -mpip install --upgrade cairocffi>=0.8 pgi>=0.0.11.2 && |
| 37 | + python -c 'import pgi as gi; gi.require_version("Gtk", "3.0"); from pgi.repository import Gtk' && |
| 38 | + echo 'pgi is available' || |
| 39 | + echo 'pgi is not available' |
| 40 | + python -mpip install --upgrade pyqt5 && |
| 41 | + python -c 'import PyQt5.QtCore' && |
| 42 | + echo 'PyQt5 is available' || |
| 43 | + echo 'PyQt5 is not available' |
| 44 | + python -mpip install --upgrade \ |
| 45 | + -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-14.04 \ |
| 46 | + wxPython && |
| 47 | + python -c 'import wx' && |
| 48 | + echo 'wxPython is available' || |
| 49 | + echo 'wxPython is not available' |
| 50 | +
|
28 | 51 | displayName: 'Install dependencies'
|
29 | 52 |
|
30 | 53 | - script: pip install -ve .
|
|
41 | 64 | testResultsFiles: '**/test-results.xml'
|
42 | 65 | testRunTitle: 'Python $(python.version)'
|
43 | 66 | condition: succeededOrFailed()
|
44 |
| - |
|
0 commit comments