From 2250b498eb043b4a6c5c433209250cf95489101b Mon Sep 17 00:00:00 2001 From: janusone <70777135+janusone@users.noreply.github.com> Date: Mon, 7 Sep 2020 13:04:27 -0500 Subject: [PATCH 1/5] 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 fea756f9e326e9b731cf45912c497ea87e86ef7f Mon Sep 17 00:00:00 2001 From: janusone <70777135+janusone@users.noreply.github.com> Date: Mon, 7 Sep 2020 13:07:14 -0500 Subject: [PATCH 2/5] Update azure-pipelines.yml --- azure-pipelines.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7d405f9ee..417253891 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,8 +16,6 @@ strategy: python.version: '3.5' Python36: python.version: '3.6' - Python37: - python.version: '3.7' steps: - task: UsePythonVersion@0 From 1d96590ab42a4a6fa7291026a8f8bd7f900461db Mon Sep 17 00:00:00 2001 From: janusone <70777135+janusone@users.noreply.github.com> Date: Mon, 7 Sep 2020 13:08:54 -0500 Subject: [PATCH 3/5] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 319b556d1..4ecf4f9c2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://dev.azure.com/janusonejuicing/l0udpvck/_apis/build/status/janusone.python-sample-vscode-flask-tutorial?branchName=master)](https://dev.azure.com/janusonejuicing/l0udpvck/_build/latest?definitionId=1&branchName=master) + # Python/Flask Tutorial 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 0f5b36a5a9c100fae952ada6eab3de7903eb6692 Mon Sep 17 00:00:00 2001 From: janusone <70777135+janusone@users.noreply.github.com> Date: Mon, 7 Sep 2020 13:09:29 -0500 Subject: [PATCH 4/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ecf4f9c2..8356840f9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://dev.azure.com/janusonejuicing/l0udpvck/_apis/build/status/janusone.python-sample-vscode-flask-tutorial?branchName=master)](https://dev.azure.com/janusonejuicing/l0udpvck/_build/latest?definitionId=1&branchName=master) +[![Build Status](https://dev.azure.com/janusonejuicing/l0udpvck/_apis/build/status/janusone.python-sample-vscode-flask-tutorial?branchName=master)(https://dev.azure.com/janusonejuicing/l0udpvck/_build/latest?definitionId=1&branchName=master) # Python/Flask Tutorial for Visual Studio Code From d63d47f53680ad2f00b6edf0d70a5fc04f77e462 Mon Sep 17 00:00:00 2001 From: janusone <70777135+janusone@users.noreply.github.com> Date: Mon, 7 Sep 2020 13:09:46 -0500 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8356840f9..4ecf4f9c2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://dev.azure.com/janusonejuicing/l0udpvck/_apis/build/status/janusone.python-sample-vscode-flask-tutorial?branchName=master)(https://dev.azure.com/janusonejuicing/l0udpvck/_build/latest?definitionId=1&branchName=master) +[![Build Status](https://dev.azure.com/janusonejuicing/l0udpvck/_apis/build/status/janusone.python-sample-vscode-flask-tutorial?branchName=master)](https://dev.azure.com/janusonejuicing/l0udpvck/_build/latest?definitionId=1&branchName=master) # Python/Flask Tutorial for Visual Studio Code