Separate out jobs for different platforms.
# https://docs.microsoft.com/vsts/pipelines/languages/python
jobs:
-- job: 'Test'
+- job: 'Test Windows'
strategy:
matrix:
- Python27 Windows:
+ Python27:
python.version: '2.7'
- parameters.vmImage: 'vs2017-win2016'
Python36 Windows:
python.version: '3.6'
- parameters.vmImage: 'vs2017-win2016'
Python37 Windows:
python.version: '3.7'
- parameters.vmImage: 'vs2017-win2016'
- Python27 macOS:
+ maxParallel: 3
+ pool:
+ vmImage: 'vs2017-win2016'
+ steps:
+ - task: UsePythonVersion@0
+ inputs:
+ versionSpec: '$(python.version)'
+ architecture: 'x64'
+ - script: |
+ python -m pip install --upgrade pip
+ pip install matplotlib numpy scipy
+ pip install pyqt
+ pip install nose six coveralls flake8 mock==1.0.1
+ displayName: 'Install dependencies'
+ - script: flake8 colour
+ displayName: 'flake8'
+ - script: nosetests --nocapture --with-doctest --doctest-options=+ELLIPSIS --with-coverage --cover-package=colour --with-xunit colour
+ displayName: 'nosetest'
+ - task: PublishTestResults@2
+ inputs:
+ testResultsFiles: '**/nosetests.xml'
+ testRunTitle: 'Python $(python.version)'
+ condition: succeededOrFailed()
+- job: 'Test macOS'
+ strategy:
+ matrix:
+ Python27:
python.version: '2.7'
- parameters.vmImage: 'xcode9-macos10.13'
- Python36 macOS:
+ Python36 Windows:
python.version: '3.6'
- parameters.vmImage: 'xcode9-macos10.13'
- Python37 macOS:
+ Python37 Windows:
python.version: '3.7'
- parameters.vmImage: 'xcode9-macos10.13'
- maxParallel: 6
+ maxParallel: 3
pool:
- vmImage: ${{ parameters.vmImage }}
+ vmImage: 'xcode9-macos10.13'
steps:
- task: UsePythonVersion@0
inputs:
