From: Joshua Roesslein Date: Tue, 18 Mar 2014 04:05:38 +0000 (-0700) Subject: Only run tests agains Twitter API on production branch. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=478585940b0300b7c2995951e237d720db6f278c;p=tweepy.git Only run tests agains Twitter API on production branch. --- diff --git a/run_tests.sh b/run_tests.sh index 1bd1ba8..4a17734 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,8 +1,8 @@ #! /usr/bin/env bash -if [[ $TRAVIS_SECURE_ENV_VARS == "false" ]]; then +if [[ $TRAVIS_BRANCH == "production" ]]; then + nosetests -v --with-coverage tests.test_api tests.test_streaming tests.test_cursors tests.test_utils +else curl "https://dl.dropboxusercontent.com/u/231242/record.json" -o tests/record.json USE_REPLAY=1 nosetests -v tests.test_api tests.test_utils -else - nosetests -v --with-coverage tests.test_api tests.test_streaming tests.test_cursors tests.test_utils fi