From: Bob Halley Date: Mon, 15 Jun 2020 22:18:20 +0000 (-0700) Subject: Set up CI with Azure Pipelines X-Git-Tag: v2.0.0rc1~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41de1f3cc0c1a0472b2dad2525844eb40b868067;p=thirdparty%2Fdnspython.git Set up CI with Azure Pipelines [skip ci] --- diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..4bf58783 --- /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'