]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Set up CI with Azure Pipelines
authorBob Halley <halley@play-bow.org>
Mon, 15 Jun 2020 22:18:20 +0000 (15:18 -0700)
committerBob Halley <halley@play-bow.org>
Mon, 15 Jun 2020 22:18:20 +0000 (15:18 -0700)
[skip ci]

azure-pipelines.yml [new file with mode: 0644]

diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644 (file)
index 0000000..4bf5878
--- /dev/null
@@ -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'