forked from xonsh/xonsh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
49 lines (45 loc) · 2.03 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
jobs:
- job: 'xonsh_windows'
pool:
vmImage: 'VS2017-Win2016'
strategy:
matrix:
Python35:
python.version: '3.5'
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'
# Uncomment when Python 3.8 is supported
#Python38:
# python.version: '3.8'
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'
displayName: 'Conda Environment (conda-forge/label/cf201901)'
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'
condition: ne(variables['python.version'], '3.5')
displayName: 'Conda Environment (conda-forge)'
- script: |
call activate conda-test-$(python.version)
pip install .
xonsh run-tests.xsh --timeout=10 --junitxml=junit/test-results.%%d.xml
displayName: 'Tests'
# Publish build results
- task: PublishTestResults@2
inputs:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Publish test results for Python $(python.version)'