Run nosetests with --nose-timer on master build but not on PR builds.
@@ -19,8 +19,9 @@ env:
# environments where small terminal size is used.
- COLUMNS=120
- PYLINT_CONCURRENCY=2
- # We disable nose timer since it adds 1-2 minutes of overhead to each test job
- - NOSE_TIME=no
+ # We only run tests with "--with-timer" flag on master and not for PRs since it adds 1-2
+ # # minutes of overhead to each build.
+ - NOSE_TIME=$([ "${TRAVIS_PULL_REQUEST}" = "false" ] && echo "yes" || echo "no")
matrix:
include:
# NOTE: We combine builds because Travis offers a maximum of 5 concurrent
