From d8cba4a7d1661780860cb5689e92f28133ce7991 Mon Sep 17 00:00:00 2001 From: ss2195 Date: Sat, 25 Jan 2020 13:21:20 +0530 Subject: [PATCH 1/4] 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..7d405f9ee --- /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 4d16dd2dbc2343e7d75a0f39b37d0839b4c4a92c Mon Sep 17 00:00:00 2001 From: ss2195 Date: Sun, 26 Jan 2020 23:19:09 +0530 Subject: [PATCH 2/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d07d6d8ed..b1d772c25 100644 --- a/README.md +++ b/README.md @@ -20,3 +20,5 @@ When you submit a pull request, a CLA-bot automatically determines whether you n * This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). * For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or * Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. + +##Adding new changes to check CI pipeline From d3a900a7b296acf4b1d678359b6fdaafcc7b68bd Mon Sep 17 00:00:00 2001 From: ss2195 Date: Sun, 26 Jan 2020 23:25:47 +0530 Subject: [PATCH 3/4] 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 7d405f9ee..e84ecf1ab 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,12 +10,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' From c0821cb6d73216c85a441ff5a3ebe957d13e780a Mon Sep 17 00:00:00 2001 From: ss2195 Date: Sun, 26 Jan 2020 23:35:19 +0530 Subject: [PATCH 4/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e84ecf1ab..7e3f035f5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -24,7 +24,12 @@ steps: pip install -r requirements.txt displayName: 'Install dependencies' -- script: | - pip install pytest pytest-azurepipelines - pytest - displayName: 'pytest' + + + +- task: PythonScript@0 + inputs: + scriptSource: 'inline' + script: | + print('Hello world 1') + print('Hello world 2')