From 88002bc315f5e554bd68ba15f21524a87a0d7ce8 Mon Sep 17 00:00:00 2001 From: nanoric Date: Mon, 7 Jan 2019 02:20:39 -0400 Subject: [PATCH] [Add] added travis script --- .travis.yml | 12 ++++++++++++ requirements-dev.txt | 2 ++ requirements-travis.txt | 0 requirements.txt | 0 tests/test_all.py | 4 ++++ 5 files changed, 18 insertions(+) create mode 100644 .travis.yml create mode 100644 requirements-dev.txt create mode 100644 requirements-travis.txt create mode 100644 requirements.txt create mode 100644 tests/test_all.py 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()