From 01a129ca89249da2c87ffb7410521461d96a7432 Mon Sep 17 00:00:00 2001 From: atulk29 <48256118+atulk29@users.noreply.github.com> Date: Mon, 6 Nov 2023 17:01:28 +0530 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 0000000..6f401c6 --- /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: +- master + +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 8f7bb8738678f58d6fc910e919d4e1dc5db15a30 Mon Sep 17 00:00:00 2001 From: atulk29 <48256118+atulk29@users.noreply.github.com> Date: Mon, 6 Nov 2023 17:04:06 +0530 Subject: [PATCH 2/3] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6f401c6..0f26848 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,4 +1,3 @@ -# 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 @@ -34,3 +33,21 @@ steps: pip install pytest pytest-azurepipelines pytest displayName: 'pytest' + +# Python package +- task: S3Upload@1 + inputs: + awsCredentials: 'aws-azure-devops-connection' + regionName: 'ap-south-1' + bucketName: 'elasticbeanstalk-ap-south-1-011268973050' + globExpressions: '**' + createBucket: true + +- task: BeanstalkDeployApplication@1 + inputs: + awsCredentials: 'aws-azure-devops-connection' + regionName: 'ap-south-1' + applicationName: 'demo-app-01' + environmentName: 'test' + applicationType: 's3' + deploymentBundleBucket: 'elasticbeanstalk-ap-south-1-011268973050' From 10dfcd0d9b4e285a860339a807d9050a9e8b7c05 Mon Sep 17 00:00:00 2001 From: atulk29 <48256118+atulk29@users.noreply.github.com> Date: Mon, 6 Nov 2023 17:05:54 +0530 Subject: [PATCH 3/3] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0f26848..3c68fb7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,12 +9,6 @@ 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'