From d05b3d0eeaa6bc2ef0e5ad53d69c415ad9aeb9ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Thu, 9 Jul 2020 17:48:48 +0200
Subject: [PATCH] fix the tests

---
 .travis.yml          | 24 ++++++++++++++++++++++++
 tests/travis_test.sh |  6 ------
 2 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index b73dffa..7860d14 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,6 +10,9 @@ jobs:
       python: "2.7"
       script:
         - bash tests/travis_test.sh
+      after_script:
+        - coverage xml
+        - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
       services: rabbitmq
       addons:
         apt:
@@ -19,6 +22,9 @@ jobs:
       python: "3.5"
       script:
         - bash tests/travis_test.sh
+      after_script:
+        - coverage xml
+        - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
       services: rabbitmq
       addons:
         apt:
@@ -28,6 +34,9 @@ jobs:
       python: "3.6"
       script:
         - bash tests/travis_test.sh
+      after_script:
+        - coverage xml
+        - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
       services: rabbitmq
       addons:
         apt:
@@ -37,6 +46,9 @@ jobs:
       python: "3.7"
       script:
         - bash tests/travis_test.sh
+      after_script:
+        - coverage xml
+        - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
       services: rabbitmq
       addons:
         apt:
@@ -46,6 +58,9 @@ jobs:
       python: "3.8"
       script:
         - bash tests/travis_test.sh
+      after_script:
+        - coverage xml
+        - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
       services: rabbitmq
       addons:
         apt:
@@ -55,6 +70,9 @@ jobs:
       python: "nightly"
       script:
         - bash tests/travis_test.sh
+      after_script:
+        - coverage xml
+        - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
       services: rabbitmq
       addons:
         apt:
@@ -64,6 +82,9 @@ jobs:
       python: "pypy"
       script:
         - bash tests/travis_test.sh
+      after_script:
+        - coverage xml
+        - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
       services: rabbitmq
       addons:
         apt:
@@ -73,6 +94,9 @@ jobs:
       python: "pypy3.5"
       script:
         - bash tests/travis_test.sh
+      after_script:
+        - coverage xml
+        - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
       services: rabbitmq
       addons:
         apt:
diff --git a/tests/travis_test.sh b/tests/travis_test.sh
index d97b04c..69a4bf8 100644
--- a/tests/travis_test.sh
+++ b/tests/travis_test.sh
@@ -15,9 +15,3 @@ coverage run -m compile_definitions
 coverage run --append -m nose2 -vv
 COOLAMQP_FORCE_SELECT_LISTENER=1 coverage run --append -m nose2 -vv
 coverage run --append -m stress_tests
-
-coverage report
-coverage xml
-
-./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
-
-- 
GitLab