Commit 6dc02f43 authored by Raphaël Vinot's avatar Raphaël Vinot
Browse files

Add initial Travis file

parent 568a4992
Loading
Loading
Loading
Loading

.travis.yml

0 → 100644
+42 −0
Original line number Diff line number Diff line
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