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