-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Travis sucks; switch to Azure Pipelines
HTML is autogenerated by Azure
- Loading branch information
Neil Booth
committed
Feb 3, 2021
1 parent
5b4bd79
commit 56c7ba4
Showing
4 changed files
with
92 additions
and
22 deletions.
There are no files selected for viewing
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,35 @@ | ||
pr: | ||
- master | ||
- releases/* | ||
|
||
jobs: | ||
- template: run-tests.yml | ||
parameters: | ||
name: Py38_Ubuntu | ||
vmImage: 'ubuntu-16.04' | ||
pythonVersion: '3.8' | ||
- template: run-tests.yml | ||
parameters: | ||
name: Py38_Mac | ||
vmImage: 'macOS-10.14' | ||
pythonVersion: '3.8' | ||
- template: run-tests.yml | ||
parameters: | ||
name: Py38_Win | ||
vmImage: 'windows-2019' | ||
pythonVersion: '3.8' | ||
- template: run-tests.yml | ||
parameters: | ||
name: Py39_Ubuntu | ||
vmImage: 'ubuntu-16.04' | ||
pythonVersion: '3.9' | ||
- template: run-tests.yml | ||
parameters: | ||
name: Py39_Mac | ||
vmImage: 'macOS-10.14' | ||
pythonVersion: '3.9' | ||
- template: run-tests.yml | ||
parameters: | ||
name: Py39_Win | ||
vmImage: 'windows-2019' | ||
pythonVersion: '3.9' |
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,21 @@ | ||
parameters: | ||
onlyPullRequests: false | ||
|
||
steps: | ||
- script: | | ||
python -m pip install websockets uvloop | ||
python -m pip install pycodestyle | ||
python -m pip install coveralls coverage | ||
python -m pip install pytest pytest-asyncio Sphinx | ||
displayName: Prepare general environment | ||
condition: | | ||
and( | ||
succeeded(), | ||
or( | ||
eq(variables['Build.Reason'], 'PullRequest'), | ||
eq(${{ parameters.onlyPullRequests }}, false) | ||
) | ||
) | ||
enabled: true | ||
continueOnError: false | ||
failOnStderr: false |
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,36 @@ | ||
parameters: | ||
name: '' # defaults for any parameters that aren't specified | ||
vmImage: '' | ||
pythonVersion: '' | ||
|
||
jobs: | ||
- job: ${{ parameters.name }} | ||
pool: | ||
vmImage: ${{ parameters.vmImage }} | ||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: ${{ parameters.pythonVersion }} | ||
addToPath: true | ||
architecture: x64 | ||
- template: prepare-env.yml | ||
- script: | | ||
coverage run -m pytest --junitxml=junit/test-results.xml tests | ||
coverage xml | ||
displayName: 'Test with pytest' | ||
- task: PublishTestResults@2 | ||
condition: succeededOrFailed() | ||
inputs: | ||
testResultsFiles: 'junit/test-*.xml' | ||
testRunTitle: 'Publish test results for Python ${{ parameters.pythonVersion }}' | ||
- task: PublishCodeCoverageResults@1 | ||
inputs: | ||
codeCoverageTool: cobertura | ||
summaryFileLocation: coverage.xml | ||
- bash: | | ||
COVERALLS_REPO_TOKEN=$(COVERALLS_REPO_TOKEN) coveralls | ||
displayName: 'Coveralls' | ||
- bash: | | ||
pycodestyle --max-line-length=100 aiorpcx/*.py | ||
condition: succeededOrFailed() | ||
displayName: 'Validate code style' |
This file was deleted.
Oops, something went wrong.