diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..c9ea4d44 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,34 @@ +# Azure Pipelines configuration + +trigger: +- master + +pool: + vmImage: 'ubuntu-latest' +strategy: + matrix: + Python35: + python.version: '3.5' + Python36: + python.version: '3.6' + 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 coverage + displayName: 'Install coverage' + +- script: | + coverage run tests.py + displayName: 'Run tests' + +- script: | + bash <(curl -s https://codecov.io/bash) + displayName: 'Upload to codecov.io'