forked from dagster-io/dagster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
34 lines (34 loc) · 1020 Bytes
/
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
jobs:
- job: "dagster"
pool:
vmImage: "vs2017-win2016"
strategy:
matrix:
py27:
TOXENV: "py27-windows"
python.version: "2.7"
py36:
TOXENV: "py36-windows"
python.version: "3.6"
py37:
TOXENV: "py37-windows"
python.version: "3.7"
variables:
PYTHONLEGACYWINDOWSSTDIO: "1"
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "$(python.version)"
architecture: "x64"
- script: choco install vcpython27 --yes
condition: eq(variables['python.version'], '2.7')
displayName: "Install vcpython27"
- script: pip install tox
displayName: "Install tox"
- script: cd python_modules\dagster && tox -e %TOXENV% && cd ..\..
displayName: "Run tests"
- task: PublishTestResults@2
inputs:
testResultsFiles: "**/test_results.xml"
testRunTitle: "dagster $(TOXENV)"
condition: succeededOrFailed()