forked from aboutcode-org/vulnerablecode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (25 loc) · 867 Bytes
/
.travis.yml
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
language: python
python: 3.8
services:
- postgresql
install:
- pip install -e . -r requirements.txt
env:
global:
- SECRET_KEY="i1bn=oly)w*2yl-5yc&f!vvgt)p)fh3_2$r#spa!*sw36f5ov7"
- GH_TOKEN="dummygithubtoken"
before_script:
- psql -c "CREATE DATABASE vulnerablecode;" -U postgres
- ./manage.py migrate
script:
- ./manage.py collectstatic
- pytest
- 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
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/b119fa557626081e1f36
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always