summaryrefslogtreecommitdiff
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authorBob Halley <halley@play-bow.org>2020-06-15 15:18:20 -0700
committerBob Halley <halley@play-bow.org>2020-06-15 15:18:20 -0700
commit41de1f3cc0c1a0472b2dad2525844eb40b868067 (patch)
tree850a6a1d891fd79ec8121b46b135540bf4e2480e /azure-pipelines.yml
parent49e89c635a47c9842ca39be28a3f1248ccb4f90d (diff)
downloaddnspython-41de1f3cc0c1a0472b2dad2525844eb40b868067.tar.gz
Set up CI with Azure Pipelines
[skip ci]
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 0000000..4bf5878
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,30 @@
+# Python package
+# Create and test a Python package on multiple Python versions.
+# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
+# https://docs.microsoft.com/azure/devops/pipelines/languages/python
+
+trigger:
+- master
+
+pool:
+ vmImage: 'vs2017-win2016'
+strategy:
+ matrix:
+ Python37:
+ python.version: '3.7'
+
+steps:
+- task: UsePythonVersion@0
+ inputs:
+ versionSpec: '$(python.version)'
+ displayName: 'Use Python $(python.version)'
+
+- script: |
+ python -m pip install --upgrade pip
+ pip install -e .[dnssec,idna,doh,trio,curio]
+ displayName: 'Install dependencies'
+
+- script: |
+ pip install pytest pytest-azurepipelines
+ pytest
+ displayName: 'pytest'