diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..41e4f902 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 00000000..6325b67f --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,2 @@ +pylint +https://github.com/google/yapf/archive/master.zip diff --git a/requirements-travis.txt b/requirements-travis.txt new file mode 100644 index 00000000..e69de29b diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..e69de29b diff --git a/tests/test_all.py b/tests/test_all.py new file mode 100644 index 00000000..f636d3fd --- /dev/null +++ b/tests/test_all.py @@ -0,0 +1,4 @@ +import unittest + +if __name__ == '__main__': + unittest.main()