From ffa5d9951dc3d0ad28627d82b7644d157b08a7d4 Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Thu, 20 Feb 2020 16:53:25 +0300 Subject: [PATCH 01/17] 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 6cc5d6637f68c943399f2bc600b653a8cbf227fd Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Thu, 20 Feb 2020 17:19:47 +0300 Subject: [PATCH 02/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7d405f9ee..0b463cbd0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,5 +32,7 @@ steps: - script: | pip install pytest pytest-azurepipelines + ls -l + pwd pytest displayName: 'pytest' From 0668ec447f34e780f03dbec91af968f6aee1d92d Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Thu, 20 Feb 2020 18:02:28 +0300 Subject: [PATCH 03/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0b463cbd0..9d81b7b1f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,7 +32,5 @@ steps: - script: | pip install pytest pytest-azurepipelines - ls -l - pwd - pytest + pytest --disable-warnings displayName: 'pytest' From b07fab0ff2136a4f0a45936f1e58854a53230100 Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Thu, 20 Feb 2020 18:05:48 +0300 Subject: [PATCH 04/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9d81b7b1f..6a0794561 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,7 +30,7 @@ steps: pip install -r requirements.txt displayName: 'Install dependencies' -- script: | - pip install pytest pytest-azurepipelines - pytest --disable-warnings - displayName: 'pytest' +#- script: | +# pip install pytest pytest-azurepipelines +# pytest +# displayName: 'pytest' From e4dc8dd6960fd1d5ad0de80ee9fb67d780e3d380 Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Fri, 21 Feb 2020 11:19:42 +0300 Subject: [PATCH 05/17] Badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d07d6d8ed..33cccc3db 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Build Status](https://dev.azure.com/genok/microsoft-demo/_apis/build/status/Anymatrix.python-sample-vscode-flask-tutorial?branchName=master)](https://dev.azure.com/genok/microsoft-demo/_build/latest?definitionId=1&branchName=master) # Python/Flask tutorial sample for Visual Studio Code * This sample contains the completed program from the tutorial, make sure to visit the link: [Using Flask in Visual Studio Code](https://code.visualstudio.com/docs/python/tutorial-flask). Intermediate steps are not included. From 617d56e848e4d86845e22153be1bf9f45977f2bc Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Fri, 21 Feb 2020 13:01:40 +0300 Subject: [PATCH 06/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6a0794561..ca1db14b1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - master pool: - vmImage: 'ubuntu-latest' + vmImage: 'macos-latest' strategy: matrix: Python27: @@ -30,7 +30,7 @@ steps: pip install -r requirements.txt displayName: 'Install dependencies' -#- script: | -# pip install pytest pytest-azurepipelines -# pytest -# displayName: 'pytest' +- script: | + pip install pytest pytest-azurepipelines + pytest + displayName: 'pytest' From 7f88397efb27bfb5a326a5da5a76b56cdc770afc Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Fri, 21 Feb 2020 13:04:22 +0300 Subject: [PATCH 07/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ca1db14b1..c72ff58bc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - master pool: - vmImage: 'macos-latest' + vmImage: 'vs2017-win2016' strategy: matrix: Python27: From 293d68602472006071452d276e050b52a965e715 Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Fri, 21 Feb 2020 13:16:24 +0300 Subject: [PATCH 08/17] Update azure-pipelines.yml --- azure-pipelines.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c72ff58bc..8a01d13ca 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,8 +6,19 @@ trigger: - master +strategy: + matrix: + linux: + imageName: "ubuntu-16.04" + mac: + imageName: "macos-10.14" + windows: + imageName: "vs2017-win2016" + maxParallel: 3 + pool: - vmImage: 'vs2017-win2016' + vmImage: $(imageName) + strategy: matrix: Python27: @@ -25,10 +36,10 @@ steps: versionSpec: '$(python.version)' displayName: 'Use Python $(python.version)' -- script: | - python -m pip install --upgrade pip - pip install -r requirements.txt - displayName: 'Install dependencies' +#- script: | +# python -m pip install --upgrade pip +# pip install -r requirements.txt +# displayName: 'Install dependencies' - script: | pip install pytest pytest-azurepipelines From 9822753a9e7663e4c128112c833076c3ee0ee705 Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Fri, 21 Feb 2020 13:17:39 +0300 Subject: [PATCH 09/17] Update azure-pipelines.yml --- azure-pipelines.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8a01d13ca..f27702d7a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,12 +15,8 @@ strategy: windows: imageName: "vs2017-win2016" maxParallel: 3 - -pool: - vmImage: $(imageName) - -strategy: - matrix: + + matrix: Python27: python.version: '2.7' Python35: @@ -29,6 +25,10 @@ strategy: python.version: '3.6' Python37: python.version: '3.7' + + +pool: + vmImage: $(imageName) steps: - task: UsePythonVersion@0 From 4ff1e81c490410d7d1cf1605d6fb80360d5d8789 Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Fri, 21 Feb 2020 13:18:39 +0300 Subject: [PATCH 10/17] Update azure-pipelines.yml --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f27702d7a..9e78c07b3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,7 +15,7 @@ strategy: windows: imageName: "vs2017-win2016" maxParallel: 3 - + ''' matrix: Python27: python.version: '2.7' @@ -25,7 +25,7 @@ strategy: python.version: '3.6' Python37: python.version: '3.7' - + ''' pool: vmImage: $(imageName) From 01929ec788b1e1f28bf31992cca593dc57df7b4b Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Fri, 21 Feb 2020 13:19:19 +0300 Subject: [PATCH 11/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9e78c07b3..65f5b5adc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,17 +15,6 @@ strategy: windows: imageName: "vs2017-win2016" maxParallel: 3 - ''' - matrix: - Python27: - python.version: '2.7' - Python35: - python.version: '3.5' - Python36: - python.version: '3.6' - Python37: - python.version: '3.7' - ''' pool: vmImage: $(imageName) From 163a66bda75ab195d7f262ce9d1913a09d00c536 Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Fri, 21 Feb 2020 13:30:41 +0300 Subject: [PATCH 12/17] Update azure-pipelines.yml --- azure-pipelines.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 65f5b5adc..cf50c135f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,10 +10,34 @@ strategy: matrix: linux: imageName: "ubuntu-16.04" + Python27: + python.version: '2.7' + Python35: + python.version: '3.5' + Python36: + python.version: '3.6' + Python37: + python.version: '3.7' mac: imageName: "macos-10.14" + Python27: + python.version: '2.7' + Python35: + python.version: '3.5' + Python36: + python.version: '3.6' + Python37: + python.version: '3.7' windows: imageName: "vs2017-win2016" + Python27: + python.version: '2.7' + Python35: + python.version: '3.5' + Python36: + python.version: '3.6' + Python37: + python.version: '3.7' maxParallel: 3 pool: From e5be5be03a9fd416e312772335862fef7beaa516 Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Fri, 21 Feb 2020 13:31:41 +0300 Subject: [PATCH 13/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cf50c135f..db87f54ba 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,33 +10,21 @@ strategy: matrix: linux: imageName: "ubuntu-16.04" - Python27: + python.version: '2.7' - Python35: + python.version: '3.5' - Python36: + python.version: '3.6' - Python37: + python.version: '3.7' mac: imageName: "macos-10.14" Python27: python.version: '2.7' - Python35: - python.version: '3.5' - Python36: - python.version: '3.6' - Python37: - python.version: '3.7' + windows: imageName: "vs2017-win2016" - Python27: - python.version: '2.7' - Python35: - python.version: '3.5' - Python36: - python.version: '3.6' - Python37: python.version: '3.7' maxParallel: 3 From c77013064b2270141d8b9ae2b198c70c150bf568 Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Fri, 21 Feb 2020 13:32:34 +0300 Subject: [PATCH 14/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index db87f54ba..64437c640 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -11,13 +11,13 @@ strategy: linux: imageName: "ubuntu-16.04" - python.version: '2.7' + python.version: '2.7' - python.version: '3.5' + python.version: '3.5' - python.version: '3.6' + python.version: '3.6' - python.version: '3.7' + python.version: '3.7' mac: imageName: "macos-10.14" Python27: @@ -25,7 +25,7 @@ strategy: windows: imageName: "vs2017-win2016" - python.version: '3.7' + python.version: '3.7' maxParallel: 3 pool: From 151726343ae3e002ee986770b6c7f6df943152dd Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Fri, 21 Feb 2020 13:33:41 +0300 Subject: [PATCH 15/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 64437c640..8301b6dd2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,18 +10,11 @@ strategy: matrix: linux: imageName: "ubuntu-16.04" - python.version: '2.7' - - python.version: '3.5' - - python.version: '3.6' - - python.version: '3.7' mac: imageName: "macos-10.14" Python27: - python.version: '2.7' + python.version: '3.5' windows: imageName: "vs2017-win2016" From a257553ee3f9416ecf9342f323e084a6e88568aa Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Fri, 21 Feb 2020 13:34:00 +0300 Subject: [PATCH 16/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8301b6dd2..6054f7c5c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,8 +13,8 @@ strategy: python.version: '2.7' mac: imageName: "macos-10.14" - Python27: - python.version: '3.5' + + python.version: '3.5' windows: imageName: "vs2017-win2016" From 1d991a962188dcd204e1e838de3ff07851104a67 Mon Sep 17 00:00:00 2001 From: Anymatrix <36519653+Anymatrix@users.noreply.github.com> Date: Fri, 21 Feb 2020 13:36:10 +0300 Subject: [PATCH 17/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6054f7c5c..f11f63d99 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,12 +30,12 @@ steps: versionSpec: '$(python.version)' displayName: 'Use Python $(python.version)' -#- script: | -# python -m pip install --upgrade pip -# pip install -r requirements.txt -# displayName: 'Install dependencies' +- script: | + python -m pip install --upgrade pip + pip install -r requirements.txt + displayName: 'Install dependencies' - script: | pip install pytest pytest-azurepipelines - pytest +# pytest displayName: 'pytest'