diff --git a/.travis.yml b/.travis.yml
index 41d67292988133dbe14d28f6bdc26b5b1f0d62d3..c52f40e4137e495ad0e06e7bccb40902af139c02 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -78,4 +78,4 @@ after_success:
   - if [ $COVERAGE == ON ]; then ./.ci/coverage.sh; fi
 
   # Upload report to CodeCov.
-  - if [ $COVERAGE == ON ]; then bash <(curl -s https://codecov.io/bash) -t $COV_TOKEN || echo "Codecov did not collect coverage reports"; fi
+  - if [ $COVERAGE == ON ]; then bash <(curl -s https://codecov.io/bash) -f "!*tests*" || echo "Codecov failed"; fi