Skip to content

Commit d73eac4

Browse files
authored
Merge pull request #4 from rahul29041995/master
testing
2 parents 33c461b + 209ea52 commit d73eac4

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
@app.route('/')
66
def index():
7-
return "<h1> Hello World </h1>"
7+
return "<h1> Welcome Rahul </h1>"
88

99
@app.route('/<name>/')
1010
def name(name):

azure-pipelines.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Python package
2+
# Create and test a Python package on multiple Python versions.
3+
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
4+
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
5+
6+
trigger:
7+
- main
8+
9+
pool:
10+
name: boschepoc
11+
12+
variables:
13+
name:
14+
python.version=3.10
15+
16+
steps:
17+
- task: PowerShell@2
18+
inputs:
19+
targetType: 'inline'
20+
script: |
21+
# Write your PowerShell commands here.
22+
23+
cd C:\Users\srahul\Documents\helloworldtest\flask-hello-world
24+
python -m venv venv C:\Users\srahul\Documents\helloworldtest\flask-hello-world\venv\Scripts\Activate.ps1
25+
python -m pip install --upgrade pip
26+
pip install -r requirements.txt
27+
displayName: 'Install dependencies'
28+
29+
- script:
30+
START /B python api.py > webapp.txt
31+
displayName: 'run app.py'

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
flask==1.0.2
2+
gunicorn==19.9.0

0 commit comments

Comments
 (0)