From f87a1f517270b18d690091a61d6ab04801d6eb96 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 5 Aug 2014 17:44:11 +0300 Subject: [PATCH 1/4] coverage isn't working --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c25827a..851aa8a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ install: - "pip install -r requirements.txt" - "pip install coveralls" -script: coverage run --source=amodem tests/run.py +script: coverage run tests/run.py -after_success: +after_success: - coveralls From 4c99ff2ebd4d309b2c6b2155f6a3cc89d3f9c8fb Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 5 Aug 2014 17:51:18 +0300 Subject: [PATCH 2/4] report to command line --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 851aa8a..158cc2f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,4 +10,4 @@ install: script: coverage run tests/run.py after_success: - - coveralls + - coverage report From f9c0444e83f54f6a2ecd28daecd9aa909d7cbf59 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 5 Aug 2014 18:09:55 +0300 Subject: [PATCH 3/4] run from tests --- .travis.yml | 9 +++++---- tests/run.py | 2 -- 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 tests/run.py diff --git a/.travis.yml b/.travis.yml index 158cc2f..3f003d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,11 +3,12 @@ python: - "2.7" install: - - "pip install ." - - "pip install -r requirements.txt" - - "pip install coveralls" + - pip install . + - pip install coveralls -script: coverage run tests/run.py +script: + - cd tests + - coverage run --source=amodem -m py.test after_success: - coverage report diff --git a/tests/run.py b/tests/run.py deleted file mode 100644 index 0542d25..0000000 --- a/tests/run.py +++ /dev/null @@ -1,2 +0,0 @@ -import pytest -pytest.main() From 13f88ff7d6ac93c4c1f962f0ead729ec266c0342 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 5 Aug 2014 18:18:24 +0300 Subject: [PATCH 4/4] report to coveralls --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3f003d3..0934039 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,4 @@ script: - coverage run --source=amodem -m py.test after_success: - - coverage report + - coveralls