From 609885f8061851652d35ebc128cec7bddcd08b2d Mon Sep 17 00:00:00 2001 From: Naveen Nathan Date: Sun, 23 Jun 2019 07:23:32 +1000 Subject: [PATCH 1/2] cI: Azure Pipelines [skip ci] --- azure-pipelines.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..8a929c7 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,44 @@ +# 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: 'ubuntu-latest' +strategy: + matrix: + Python26: + python.version: '2.6' + Python27: + python.version: '2.7' + Python33: + python.version: '3.3' + 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: 'Use Python $(python.version)' + +- script: | + python -m pip install --upgrade pip + pip install -r requirements.txt + displayName: 'Install dependencies' + +- script: | + pip install coveralls pytest pytest-azurepipelines + coverage run --source=eccsnacks setup.py test + coveralls + + displayName: 'coveralls' From c99a326fe0cd67db7350b9095729ad1e90e198da Mon Sep 17 00:00:00 2001 From: Naveen Nathan Date: Sun, 23 Jun 2019 07:28:12 +1000 Subject: [PATCH 2/2] ci: update azure-pipelines.yml --- azure-pipelines.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8a929c7..20f913a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,12 +10,8 @@ pool: vmImage: 'ubuntu-latest' strategy: matrix: - Python26: - python.version: '2.6' Python27: python.version: '2.7' - Python33: - python.version: '3.3' Python34: python.version: '3.4' Python35: @@ -33,7 +29,6 @@ steps: - script: | python -m pip install --upgrade pip - pip install -r requirements.txt displayName: 'Install dependencies' - script: |