Skip to content

Commit

Permalink
Only run tests agains Twitter API on production branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Roesslein committed Mar 18, 2014
1 parent b975c2b commit 4785859
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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

0 comments on commit 4785859

Please sign in to comment.