-
Notifications
You must be signed in to change notification settings - Fork 0
/
webapp.py
35 lines (29 loc) · 879 Bytes
/
webapp.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"""
Simple web application to test TravisCI mechanism
"""
from flask import Flask
HTML = """
<!DOCTYPE html>
<html lang="en" class="full-height">
<head>
<title>Home | TravisCI</title>
<meta charset="utf-8">
<link rel= "stylesheet" type= "text/css" href= "{{ url_for('static',filename='index3.css') }}">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>
<h1>Integracion Continua grupo UP</h1>
</body>
</html>
"""
# We have to disale this i pyllint, because pylint will fail our build every
# time it encounters this "global" variable
app = Flask(__name__) # pylint: disable=invalid-name
@app.route('/')
def home():
""" Main route to the web app
"""
return HTML
if __name__ == '__main__':
app.run()