Skip to content

Commit

Permalink
Try azure pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
oremanj committed May 6, 2019
1 parent 2a6fd4e commit f08c7a0
Showing 1 changed file with 102 additions and 0 deletions.
102 changes: 102 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# Will want to adjust this if we ever start having non-master branches
# in the main repo:
# https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers
trigger:
- master

jobs:

- job: 'Windows'
pool:
vmImage: 'vs2017-win2016'
timeoutInMinutes: 10
strategy:
# Python version list:
# 64-bit: https://www.nuget.org/packages/python/
# 32-bit: https://www.nuget.org/packages/pythonx86/
matrix:
"Python 3.5, 32 bit":
python.version: '3.5.4'
python.pkg: 'pythonx86'
"Python 3.5, 64 bit":
python.version: '3.5.4'
python.pkg: 'python'
"Python 3.6, 32 bit":
python.version: '3.6.8'
python.pkg: 'pythonx86'
"Python 3.6, 64 bit":
python.version: '3.6.8'
python.pkg: 'python'
"Python 3.7, 32 bit":
python.version: '3.7.2'
python.pkg: 'pythonx86'
"Python 3.7, 64 bit":
python.version: '3.7.2'
python.pkg: 'python'

steps:
- task: NuGetToolInstaller@0

- bash: ./ci.sh
displayName: "Run the actual tests"

- task: PublishTestResults@2
inputs:
testResultsFiles: 'test-results.xml'
testRunTitle: 'Windows $(python.pkg) $(python.version)'
condition: succeededOrFailed()

# Currently broken for unclear reasons probably related to openssl v1.1.1:
# https://github.com/python-trio/trio/pull/827#issuecomment-457139883
#
# - job: 'Linux'
# pool:
# vmImage: 'ubuntu-16.04'
# timeoutInMinutes: 10
# strategy:
# matrix:
# "Python 3.5":
# python.version: '3.5'
# "Python 3.6":
# python.version: '3.6'
# "Python 3.7":
# python.version: '3.7'
#
# steps:
# - task: UsePythonVersion@0
# inputs:
# versionSpec: '$(python.version)'
#
# - bash: ci.sh
# displayName: "Run the actual tests"
#
# - task: PublishTestResults@2
# inputs:
# testResultsFiles: 'test-results.xml'
# condition: succeededOrFailed()

- job: 'macOS'
pool:
vmImage: 'macOS-10.13'
timeoutInMinutes: 10
strategy:
matrix:
"Python 3.5":
python.version: '3.5'
"Python 3.6":
python.version: '3.6'
"Python 3.7":
python.version: '3.7'

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'

- bash: ./ci.sh
displayName: "Run the actual tests"

- task: PublishTestResults@2
inputs:
testResultsFiles: 'test-results.xml'
condition: succeededOrFailed()

0 comments on commit f08c7a0

Please sign in to comment.