Add travis

pull/30/head
Raphaël Vinot 2016-08-17 18:36:01 +02:00
parent 24e328f737
commit 33a2f0603e
2 changed files with 26 additions and 2 deletions

24
.travis.yml Normal file
View File

@ -0,0 +1,24 @@
language: python
cache: pip
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.5-dev"
- "nightly"
install:
- pip install -U nose
- pip install coveralls
- pip install codecov
- pip install .
script:
- nosetests --with-coverage --cover-package=pymisp tests/test_offline.py
after_success:
- codecov
- coveralls

View File

@ -13,8 +13,8 @@ class TestOffline(object):
def setUp(self):
self.domain = 'http://misp.local/'
self.key = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
self.event = json.load(open('misp_event.json', 'r'))
self.types = json.load(open('describeTypes.json', 'r'))
self.event = json.load(open('tests/misp_event.json', 'r'))
self.types = json.load(open('tests/describeTypes.json', 'r'))
def initURI(self, m):
m.register_uri('GET', self.domain + 'servers/getVersion', json={"version": "2.4.50"})