Add basic travis file

pull/10/head
Raphaël Vinot 2016-04-11 11:24:20 +02:00
parent c34628890e
commit 768922a403
3 changed files with 27 additions and 0 deletions

23
.travis.yml Normal file
View File

@ -0,0 +1,23 @@
language: python
cache: pip
addons:
apt:
packages:
- libpq5
python:
- "3.3"
- "3.4"
- "3.5"
- "nightly"
install:
- pip install -r REQUIREMENTS
script:
- pushd bin
- ./misp-modules.py -t
- popd

View File

@ -5,3 +5,4 @@ urlarchiver
passivetotal passivetotal
PyPDNS PyPDNS
pypssl pypssl
psycopg2

View File

@ -93,4 +93,7 @@ if __name__ == '__main__':
application = tornado.web.Application(service) application = tornado.web.Application(service)
log.info('MISP modules server started on TCP port {0}'.format(port)) log.info('MISP modules server started on TCP port {0}'.format(port))
application.listen(port) application.listen(port)
if sys.argv[1] == '-t':
log.info('MISP modules started in test-mode, quitting immediately.')
sys.exit()
tornado.ioloop.IOLoop.instance().start() tornado.ioloop.IOLoop.instance().start()