From e4974c7ff55e95e6a04755f46bc71dd6c028f831 Mon Sep 17 00:00:00 2001 From: Kayla Ngan Date: Wed, 7 Nov 2018 13:12:38 -0500 Subject: [PATCH] Set up Azure Pipelines for Linux and Windows --- _azure-pipelines/template-linux.yml | 33 ++++++++++++++++++++++++ _azure-pipelines/template-windows.yml | 36 +++++++++++++++++++++++++++ azure-pipelines.yml | 4 +++ 3 files changed, 73 insertions(+) create mode 100644 _azure-pipelines/template-linux.yml create mode 100644 _azure-pipelines/template-windows.yml create mode 100644 azure-pipelines.yml diff --git a/_azure-pipelines/template-linux.yml b/_azure-pipelines/template-linux.yml new file mode 100644 index 00000000..a4658d5f --- /dev/null +++ b/_azure-pipelines/template-linux.yml @@ -0,0 +1,33 @@ +jobs: +- job: Linux + pool: + vmImage: 'Ubuntu-16.04' + strategy: + matrix: + Python27: + PYTHON_VERSION: '2.7' + Python34: + PYTHON_VERSION: '3.4' + Python35: + PYTHON_VERSION: '3.5' + Python36: + PYTHON_VERSION: '3.6' + Python37: + PYTHON_VERSION: '3.7' + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: $(PYTHON_VERSION) + displayName: 'Install Python' + - script: | + make + make test-readme + make ci + - script: | + pipenv run codecov + displayName: 'Coverage' + - task: PublishTestResults@2 + displayName: 'Publish test results' + inputs: + testResultsFiles: 'report.xml' + testRunTitle: Python $(PYTHON_VERSION) diff --git a/_azure-pipelines/template-windows.yml b/_azure-pipelines/template-windows.yml new file mode 100644 index 00000000..1f3b8db2 --- /dev/null +++ b/_azure-pipelines/template-windows.yml @@ -0,0 +1,36 @@ +jobs: +- job: Windows + pool: + vmImage: 'vs2017-win2016' + strategy: + matrix: + Python27: + PYTHON_VERSION: '2.7' + Python34: + PYTHON_VERSION: '3.4' + 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' + displayName: 'Install Python' + - script: | + make init + python -m pip install --upgrade pip wheel + displayName: 'Ensure latest' + - script: | + make + pipenv install -e .[socks] --skip-lock + - script: | + make coverage + displayName: 'Test script' + - script: | + pipenv run codecov -f coverage.xml + displayName: 'Coverage' + diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..68eeedde --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,4 @@ +jobs: +- template: _azure-pipelines/template-linux.yml + +- template: _azure-pipelines/template-windows.yml