diff --git a/.travis.yml b/.travis.yml
index d17303c2badd7733c691f5235aa393969c63c806..f88a2386013a34ad03cc1b314d0cf55b1b1fe6c3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,7 +15,7 @@ install:
   - pip install coverage nose2 requests
 script:
   - bash tests/test_posix/test_hang_until_sig.sh
-  - python setup.py test
+  - coverage run -m nose2 -v
 after_success:
   - coverage xml
   - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT