Only run tests agains Twitter API on production branch.
authorJoshua Roesslein <jroesslein@opengov.com>
Tue, 18 Mar 2014 04:05:38 +0000 (21:05 -0700)
committerJoshua Roesslein <jroesslein@opengov.com>
Tue, 18 Mar 2014 04:05:38 +0000 (21:05 -0700)
run_tests.sh

index 1bd1ba8c243e248b5ed04df3f3559c2615107053..4a17734819901bab7261a33f6ce768944f545bd4 100755 (executable)
@@ -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