Skip to content

Commit 52fb7a5

Browse files
committed
Readd travis
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
1 parent 326e0c2 commit 52fb7a5

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
language: python
2+
python: 3.8
3+
4+
services:
5+
- postgresql
6+
7+
install:
8+
- pip install -e . -r requirements.txt
9+
10+
env:
11+
global:
12+
- SECRET_KEY="i1bn=oly)w*2yl-5yc&f!vvgt)p)fh3_2$r#spa!*sw36f5ov7"
13+
- GH_TOKEN="dummygithubtoken"
14+
15+
before_script:
16+
- psql -c "CREATE DATABASE vulnerablecode;" -U postgres
17+
- ./manage.py migrate
18+
19+
script:
20+
- ./manage.py collectstatic
21+
- pytest
22+
- pycodestyle --exclude=migrations,settings.py,venv,lib_oval.py,test_ubuntu.py,test_suse.py,test_data_source.py --max-line-length=100 vulnerablecode vulnerabilities
23+
24+
notifications:
25+
email: false
26+
webhooks:
27+
urls:
28+
- https://webhooks.gitter.im/e/b119fa557626081e1f36
29+
on_success: change # options: [always|never|change] default: always
30+
on_failure: always # options: [always|never|change] default: always
31+
on_start: never # options: [always|never|change] default: always

0 commit comments

Comments
 (0)