added CI badge and added sentry tracking

This commit is contained in:
Navan Chauhan 2020-09-10 13:26:06 +05:30
parent 84f602230b
commit 85555704ce
5 changed files with 17 additions and 6 deletions

View File

@ -27,4 +27,4 @@ jobs:
- name: Run Backend Test
run: cd tests && python backendTest.py
- name: Remove sample data
run: cd tests && pyton removeSample.py
run: cd tests && python removeSample.py

View File

@ -1,15 +1,11 @@
# Curie-Web
![Backend Tessts](https://github.com/navanchauhan/Curie-Web/workflows/Test%20Backend/badge.svg)
![Database Tests](https://github.com/navanchauhan/Curie-Web/workflows/Test%20Database/badge.svg)
[![DeepSource](https://static.deepsource.io/deepsource-badge-dark-mini.svg)](https://deepsource.io/gh/navanchauhan/Curie-Web/?ref=repository-badge)
![Database and Backend](https://github.com/navanchauhan/Curie-Web/workflows/Test%20Database%20and%20Backend/badge.svg)
Tested on:
* macOS 10.15 (Catalina)
* Ubuntu 20.04 - Raspberry Pi 4
**Do Not Forget To Change DB Host configuration!**
## 1. Installing Dependencies
### 1.1 Docker

View File

@ -1,5 +1,16 @@
from flask import Flask
import sentry_sdk
from sentry_sdk.integrations.flask import FlaskIntegration
"""
sentry_sdk.init(
dsn="https://7bc9916920c041479b69db97bdb279fa@o126149.ingest.sentry.io/5424142",
integrations=[FlaskIntegration()],
traces_sample_rate=1.0
)
"""
import configparser
config = configparser.ConfigParser()
config.read('config.ini')

View File

@ -387,6 +387,9 @@ def send_text_file(file_name):
file_dot_text = file_name + '.txt'
return app.send_static_file(file_dot_text)
@app.route('/debug-sentry')
def trigger_error():
division_by_zero = 1 / 0
@app.after_request
def add_header(response):

View File

@ -25,3 +25,4 @@ wget
lifelines
scikit-plot
pymed
sentry-sdk[flask]