diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..812fc3b --- /dev/null +++ b/.coveragerc @@ -0,0 +1,4 @@ +[report] +omit = + */python?.?/* + */site-packages/nose/* diff --git a/.travis.yml b/.travis.yml index e049879..c66b911 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,7 @@ python: - 2.7 script: - - make travis \ No newline at end of file + - make travis + +after_success: + - coveralls \ No newline at end of file diff --git a/Makefile b/Makefile index 7631040..f6b881d 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ install: python setup.py develop pip install -r requirements.txt -test: - ./runtests.py +coverage: + coverage run ./runtests.py -travis: install test +travis: install coverage diff --git a/requirements.txt b/requirements.txt index 8548c26..34a78a6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,8 @@ -coverage==3.5.1 -ipdb==0.2 -mock==0.7.0 -django-nose==1.1 +# Tests +mock>=1.0.1,<1.1 +coverage>=3.6,<3.7 +django-nose>=1.2,<1.3 +coveralls>=0.1.1,<0.2 + +# Debug +ipdb>=0.8,<0.9 diff --git a/runtests.py b/runtests.py index 9ac4b7f..8ba6755 100755 --- a/runtests.py +++ b/runtests.py @@ -14,6 +14,6 @@ def run_tests(*test_args): if __name__ == '__main__': args = sys.argv[1:] if not args: - args.extend(['--with-coverage', '--cover-package=my_css']) + args.extend(['tests']) configure() run_tests(*args)