[Add] added travis script

This commit is contained in:
nanoric 2019-01-07 02:20:39 -04:00
parent 8f1029ee37
commit 88002bc315
5 changed files with 18 additions and 0 deletions

12
.travis.yml Normal file
View File

@ -0,0 +1,12 @@
language: python
python:
- "3.7"
install:
- pip install -r requirements.txt
- pip install -r requirements-travis.txt
- pip install -r requirements-dev.txt
# command to run tests
script:
- yapf --style .style.yapf
- pylint --rcfile=.pylintrc vnpy
- python tests/test_all.py

2
requirements-dev.txt Normal file
View File

@ -0,0 +1,2 @@
pylint
https://github.com/google/yapf/archive/master.zip

0
requirements-travis.txt Normal file
View File

0
requirements.txt Normal file
View File

4
tests/test_all.py Normal file
View File

@ -0,0 +1,4 @@
import unittest
if __name__ == '__main__':
unittest.main()