-
-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98d6e02
commit cb3d244
Showing
5 changed files
with
156 additions
and
63 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr) | ||
|
||
phases: | ||
- phase: 'lint' | ||
queue: | ||
name: 'Hosted Linux Preview' | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: setup python | ||
inputs: | ||
versionSpec: '3.7.0-b2' | ||
|
||
- script: 'python -c "import sys; import os; os.symlink(sys.executable, os.path.join(os.path.dirname(sys.executable), \"python3.7\"))"' | ||
displayName: link python to python3.7 | ||
|
||
- script: 'python -m pip install -U tox setuptools' | ||
displayName: install tox | ||
|
||
- script: 'tox -e fix-lint' | ||
displayName: run tox | ||
|
||
|
||
|
||
- phase: 'docs' | ||
queue: | ||
name: 'Hosted Linux Preview' | ||
parallel: 2 | ||
matrix: | ||
readthedocs: | ||
toxenv: 'docs' | ||
packageDescription: | ||
toxenv: 'package-description' | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: setup python | ||
inputs: | ||
versionSpec: '3.7.0-b2' | ||
|
||
- script: 'python -c "import sys; import os; os.symlink(sys.executable, os.path.join(os.path.dirname(sys.executable), \"python3.7\"))"' | ||
displayName: link python to python3.7 | ||
|
||
- script: 'python -m pip install -U tox setuptools' | ||
displayName: install tox | ||
|
||
- script: 'tox -e $(toxenv)' | ||
displayName: run tox | ||
|
||
- phase: 'linux' | ||
queue: | ||
name: 'Hosted Linux Preview' | ||
parallel: 4 | ||
matrix: | ||
python27: | ||
python.version: '2.7' | ||
python34: | ||
python.version: '3.4' | ||
python35: | ||
python.version: '3.5' | ||
python36: | ||
python.version: '3.6' | ||
python37: | ||
python.version: '3.7.0-b2' | ||
|
||
steps: | ||
|
||
- task: UsePythonVersion@0 | ||
displayName: setup python$(python.version) | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
|
||
- script: 'python -m pip install -U tox setuptools' | ||
displayName: install tox | ||
|
||
- script: 'python -m tox -e py --notest' | ||
displayName: acquire env dependencies | ||
|
||
- script: 'python -m tox -e py' | ||
displayName: run tests | ||
|
||
- task: PublishTestResults@2 | ||
displayName: publish test results | ||
inputs: | ||
testResultsFiles: '.tox/test-results.*.xml' | ||
mergeTestResults: true | ||
testRunTitle: '$(toxenv)' | ||
platform: linux | ||
|
||
- phase: 'windows' | ||
queue: | ||
name: 'Hosted VS2017' | ||
parallel: 4 | ||
matrix: | ||
python27: | ||
python.version: '2.7' | ||
python34: | ||
python.version: '3.4' | ||
python35: | ||
python.version: '3.5' | ||
python36: | ||
python.version: '3.6' | ||
python37: | ||
python.version: '3.7.0-b2' | ||
|
||
steps: | ||
|
||
- task: UsePythonVersion@0 | ||
displayName: setup python$(python.version) | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
|
||
- script: 'python -m pip install -U tox setuptools' | ||
displayName: install tox | ||
|
||
- script: 'python -m tox -e py --notest' | ||
displayName: acquire env dependencies | ||
|
||
- script: 'python -m tox -e py' | ||
displayName: run tests | ||
|
||
- task: PublishTestResults@2 | ||
displayName: publish test results | ||
inputs: | ||
testResultsFiles: '.tox/test-results.*.xml' | ||
mergeTestResults: true | ||
testRunTitle: '$(toxenv)' | ||
platform: win32 | ||
|
||
- phase: 'macOS' | ||
queue: | ||
name: 'Hosted macOS Preview' | ||
parallel: 1 | ||
matrix: | ||
python: | ||
toxenv: 'py3' | ||
|
||
steps: | ||
- script: 'python3 -m pip install -U tox setuptools' | ||
displayName: install tox | ||
|
||
- script: 'python3 -m tox -e $(toxenv) --notest' | ||
displayName: acquire env dependencies | ||
|
||
- script: 'python3 -m tox -e $(toxenv)' | ||
displayName: run tests | ||
|
||
- task: PublishTestResults@2 | ||
displayName: publish test results | ||
inputs: | ||
testResultsFiles: '.tox/test-results.*.xml' | ||
mergeTestResults: true | ||
testRunTitle: 'mac py3' | ||
platform: macOS | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters