[Add] added travis script
This commit is contained in:
parent
8f1029ee37
commit
88002bc315
12
.travis.yml
Normal file
12
.travis.yml
Normal 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
2
requirements-dev.txt
Normal file
@ -0,0 +1,2 @@
|
||||
pylint
|
||||
https://github.com/google/yapf/archive/master.zip
|
0
requirements-travis.txt
Normal file
0
requirements-travis.txt
Normal file
0
requirements.txt
Normal file
0
requirements.txt
Normal file
4
tests/test_all.py
Normal file
4
tests/test_all.py
Normal file
@ -0,0 +1,4 @@
|
||||
import unittest
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
Loading…
Reference in New Issue
Block a user