xonsh/azure-pipelines.yml

49 lines
2 KiB
YAML
Raw Normal View History

2018-10-01 22:27:32 -04:00
jobs:
- 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'
2019-11-15 16:43:46 -05:00
Python38:
python.version: '3.8'
2018-10-01 22:27:32 -04:00
maxParallel: 4
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
# Conda Environment
# Create and activate a Conda environment.
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH
- script: 'conda create --yes --quiet --name conda-test-$(python.version) -c conda-forge/label/cf201901 python=$(python.version) conda=4.5.11 pygments prompt_toolkit pytest pytest-timeout numpy psutil matplotlib flake8 coverage pyflakes pytest-cov pytest-flake8 codecov'
2019-01-28 21:54:54 -05:00
displayName: 'Conda Environment (conda-forge/label/cf201901)'
2019-01-28 17:50:59 -05:00
condition: eq(variables['python.version'], '3.5')
- script: |
call activate conda-test-$(python.version)
conda install --yes --quiet -c conda-forge/label/cf201901 python=$(python.version) pygments prompt_toolkit pytest pytest-timeout numpy psutil matplotlib flake8 coverage pyflakes pytest-cov pytest-flake8 codecov
condition: eq(variables['python.version'], '3.5')
- script: 'conda create --yes --quiet --name conda-test-$(python.version) -c conda-forge python=$(python.version) pygments prompt_toolkit pytest pytest-timeout numpy psutil matplotlib flake8 coverage pyflakes pytest-cov pytest-flake8 codecov'
2019-01-28 17:50:59 -05:00
condition: ne(variables['python.version'], '3.5')
2019-01-28 21:54:54 -05:00
displayName: 'Conda Environment (conda-forge)'
2018-10-01 22:27:32 -04:00
- script: |
call activate conda-test-$(python.version)
2018-12-05 19:17:26 -05:00
pip install .
xonsh run-tests.xsh --timeout=10 --junitxml=junit/test-results.%%d.xml
displayName: 'Tests'
2018-10-02 11:13:07 +02:00
2019-01-28 17:50:59 -05: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)'