From b5955870318243f9e24ba53fda1f8c0a369d063a Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 12 Feb 2019 19:01:30 -0200 Subject: [PATCH] Set up CI with Azure Pipelines [skip travis] [skip appveyor] Just a few environments for now to see how it will behave for a few days --- azure-pipelines.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..a21cfb140 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,47 @@ +# 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 +- features + +jobs: + +- job: 'Test' + pool: + vmImage: "vs2017-win2016" + strategy: + matrix: + py27: + python.version: '2.7' + tox.env: 'py27' + py35: + python.version: '3.5' + tox.env: 'py35' + py36: + python.version: '3.6' + tox.env: 'py36' + py37: + python.version: '3.7' + tox.env: 'py37' + maxParallel: 4 + + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + architecture: 'x64' + + - script: python -m pip install --upgrade pip && pip install tox + displayName: 'Install tox' + + - script: python -m tox -e $(tox.env) -- --junitxml=build/test-results/$(tox.env).xml + displayName: 'Run tests' + + - task: PublishTestResults@2 + inputs: + testResultsFiles: 'build/test-results/$(tox.env).xml' + testRunTitle: '$(tox.env)' + condition: succeededOrFailed()