From 8b8ab80e5f9b1bdf22c9ddbc56f422f500df22e7 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Tue, 5 Jan 2016 10:39:28 +0100 Subject: [PATCH] ADD travis-configuration-file and comments in setup.py --- .travis.yml | 10 ++++++++++ setup.py | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..576f5e6 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: python +sudo: false +cache: pip +before_install: + - pip install codecov +after_success: + - codecov +# command to run tests +script: + - tox \ No newline at end of file diff --git a/setup.py b/setup.py index eba6372..a3e5d84 100755 --- a/setup.py +++ b/setup.py @@ -10,18 +10,22 @@ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() class Tox(TestCommand): + """proxy class that enables tox to be run with setup.py test""" user_options = [('tox-args=', 'a', "Arguments to pass to tox")] def initialize_options(self): + """initialize the user-options""" TestCommand.initialize_options(self) self.tox_args = None def finalize_options(self): + """finalize user-options""" TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): + """run tox and pass on user-options""" #import here, cause outside the eggs aren't loaded import tox import shlex