From 727ee2ad6d6f8235081a2e630892db72bcd417b9 Mon Sep 17 00:00:00 2001 From: "azure-pipelines[bot]" Date: Mon, 19 Nov 2018 10:38:11 +0000 Subject: [PATCH 1/2] Set up CI with Azure Pipelines --- azure-pipelines.yml | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..d7ca0ac --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,46 @@ +# 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 + +jobs: + +- job: 'Test' + pool: + vmIMage: 'VS2017-Win2016' + strategy: + maxParallel: 6 + matrix: + Python35: + python.version: '3.5' + Python36: + python.version: '3.6' + Python37: + python.version: '3.7' + + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + architecture: 'x64' + + - script: python -m pip install --upgrade pip && pip install -r requirements.txt + displayName: 'Install dependencies' + + - script: | + python -m pip install --upgrade pip + pip install -U setuptools + pip install -r build_requirements.txt + pip install pytest pytest-sugar + + python setup.py bdist_wheel + pip install --pre --no-index -f dist logwrap + + pytest -vvv --junitxml=unit_result.xml test + displayName: 'pytest' + + - task: PublishTestResults@2 + inputs: + testResultsFiles: '**/unit_result.xml' + testRunTitle: 'Python $(python.version)' + condition: succeededOrFailed() From 5ddd65f7cdbdc096669dc3a44aa3712ec37b02f7 Mon Sep 17 00:00:00 2001 From: Alexey Stepanov Date: Mon, 19 Nov 2018 11:43:48 +0100 Subject: [PATCH 2/2] Update azure-pipelines.yml --- azure-pipelines.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d7ca0ac..5cce583 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -24,17 +24,16 @@ jobs: versionSpec: '$(python.version)' architecture: 'x64' - - script: python -m pip install --upgrade pip && pip install -r requirements.txt + - script: python -m pip install --upgrade pip && pip install -U setuptools && pip install -r build_requirements.txt displayName: 'Install dependencies' - script: | - python -m pip install --upgrade pip - pip install -U setuptools - pip install -r build_requirements.txt - pip install pytest pytest-sugar - python setup.py bdist_wheel pip install --pre --no-index -f dist logwrap + displayName: 'Build and install' + + - script: | + pip install pytest pytest-sugar pytest -vvv --junitxml=unit_result.xml test displayName: 'pytest'