From ac5a6668b613481bbac6063d5f465c4d97415163 Mon Sep 17 00:00:00 2001 From: Peter Pickford Date: Thu, 4 Apr 2024 16:52:11 -0700 Subject: [PATCH 1/3] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..a6a949487 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,36 @@ +# 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: +- main + +pool: + vmImage: ubuntu-latest +strategy: + matrix: + Python27: + python.version: '2.7' + 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 pytest pytest-azurepipelines + pytest + displayName: 'pytest' From a1779644683df25a84a8fbf580eb74d2fe43c60c Mon Sep 17 00:00:00 2001 From: Peter Pickford Date: Thu, 4 Apr 2024 17:15:54 -0700 Subject: [PATCH 2/3] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a6a949487..bc21cd5e3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,31 +6,10 @@ trigger: - main -pool: - vmImage: ubuntu-latest -strategy: - matrix: - Python27: - python.version: '2.7' - Python35: - python.version: '3.5' - Python36: - python.version: '3.6' - Python37: - python.version: '3.7' +pool: 'EComm-DevOps' + steps: -- task: UsePythonVersion@0 +- task: TerraformInstaller@1 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 pytest pytest-azurepipelines - pytest - displayName: 'pytest' + terraformVersion: 'latest' From ca2554cc7f79c809f4c48e93d349eefc2b25a7ca Mon Sep 17 00:00:00 2001 From: Peter Pickford Date: Fri, 5 Apr 2024 10:19:49 -0700 Subject: [PATCH 3/3] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bc21cd5e3..279dfafbe 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,4 +1,5 @@ # 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 @@ -10,6 +11,10 @@ pool: 'EComm-DevOps' steps: -- task: TerraformInstaller@1 +- task: Bash@3 inputs: - terraformVersion: 'latest' + targetType: 'inline' + script: | + # Write your commands here + + echo 'Hello world' \ No newline at end of file