mirror of https://github.com/MISP/PyMISP
Add travis
parent
24e328f737
commit
33a2f0603e
|
@ -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
|
|
@ -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"})
|
||||
|
|
Loading…
Reference in New Issue