forked from cve-search/cve-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (36 loc) · 903 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
32
33
34
35
36
37
38
39
40
41
42
language: python
python:
#- "3.2"
- "3.3"
- "3.4"
- "3.5"
- "nightly"
cache: pip
services:
- redis-server
- mongodb
install:
- pip install -q -U pip
- pip install -q -r requirements.txt
- pushd sbin
- ./db_mgmt.py -p
# Avoid creating a log > 4mb and making travis unhappy.
- ./db_mgmt_cpe_dictionary.py | cat &
- PID=$!
- while sleep 60; do kill -0 $PID && echo 'Still running' || break; done
- popd
#- pushd web
#- python minimal-web.py &
#- popd
script:
- pushd bin
- ./search.py -p cisco:ios:12.4 > /dev/null
- ./search.py -p cisco:ios:12.4 -o json > /dev/null
- ./search.py -p microsoft:windows_7 -o html > /dev/null
- ./search.py -c CVE-2010-3333 > /dev/null
- ./dump_last.py -f atom -l 2 > /dev/null
- popd
notifications:
email:
on_success: change
on_failure: change