2018-10-01 22:27:32 -04:00
|
|
|
jobs:
|
|
|
|
|
2018-10-01 22:43:53 -04:00
|
|
|
- job: 'xonsh_windows'
|
2018-10-01 22:27:32 -04:00
|
|
|
pool:
|
|
|
|
vmImage: 'VS2017-Win2016'
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
Python35:
|
|
|
|
python.version: '3.5'
|
|
|
|
Python36:
|
|
|
|
python.version: '3.6'
|
|
|
|
Python37:
|
|
|
|
python.version: '3.7'
|
|
|
|
maxParallel: 4
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: UsePythonVersion@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: '$(python.version)'
|
|
|
|
architecture: 'x64'
|
|
|
|
|
|
|
|
# Conda Environment
|
2018-12-05 18:53:33 -05:00
|
|
|
# Create and activate a Conda environment.
|
2018-10-01 22:27:32 -04:00
|
|
|
- task: CondaEnvironment@1
|
|
|
|
inputs:
|
|
|
|
packageSpecs: 'python=$(python.version) pygments prompt_toolkit ply pytest pytest-timeout numpy psutil matplotlib flake8 coverage pyflakes pytest-cov pytest-flake8 codecov'
|
|
|
|
installOptions: '-c conda-forge'
|
2018-10-01 22:59:28 -04:00
|
|
|
updateConda: false
|
2018-10-01 22:27:32 -04:00
|
|
|
- script: |
|
2018-12-05 19:17:26 -05:00
|
|
|
pip install .
|
2018-12-05 19:28:32 -05:00
|
|
|
xonsh run-tests.xsh --timeout=10 --junitxml=junit/test-results.xml
|
2018-12-05 18:53:33 -05:00
|
|
|
displayName: 'Tests'
|
2018-10-02 11:13:07 +02:00
|
|
|
|
|
|
|
# Publish build results
|
2018-10-02 11:15:04 +02:00
|
|
|
- task: PublishTestResults@2
|
|
|
|
inputs:
|
|
|
|
testResultsFiles: '**/test-*.xml'
|
|
|
|
testRunTitle: 'Publish test results for Python $(python.version)'
|