From f878a2b696e335acc7305a55b98fa8614c352808 Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Mon, 1 Dec 2014 10:58:18 -0600 Subject: [PATCH] Tiddy up travis file. --- .travis.yml | 14 +++++++++++--- run_tests.sh | 7 ------- 2 files changed, 11 insertions(+), 10 deletions(-) delete mode 100755 run_tests.sh diff --git a/.travis.yml b/.travis.yml index 2aeca28..e909e8e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,14 @@ language: python + python: - '2.7' - '3.4' -install: - - pip install -r test_requirements.txt -r requirements.txt -script: ./run_tests.sh + env: global: - TWITTER_USERNAME="tweepytest" - AWS_BUCKET="tweepy" + - USE_REPLAY=1 - secure: ! 'MZv5O5E5E1074sT14wnRThOeFoDTZy+AdIUy+S6XqY/DMVWF2utSx09GLbvM EM+cnKavRLHTbKpoHPIzzhKx9DQLrxtYy+s3Rw9AeGo8K3LA7mcn4T4eCH7s @@ -30,7 +30,15 @@ env: aF2UwsrYkzBUMrqMqYCc2+X6CuswLEZTVXDAlNh+emvhxZ5faMI=' - secure: TPQSFGqdl6khXqQqTZ6euROoAmFRnONAlPXD6npvTIIN+fNfnz8lvZtOEWHo2jRPLoU3FyVUhYvTynj6B2hJinulP+RKOMbQ65HCZVHrsitwl1n1QZB5HegQDOYc5q6VTTYn/r8r5tGy35U0O80y1zycTLqSJiXlkdqsSq564pI= + +install: + - pip install -r test_requirements.txt -r requirements.txt + +script: + - nosetests -v --with-coverage tests.test_api tests.test_utils + after_success: if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then coveralls; fi + deploy: provider: pypi user: jroesslein diff --git a/run_tests.sh b/run_tests.sh deleted file mode 100755 index 24de143..0000000 --- a/run_tests.sh +++ /dev/null @@ -1,7 +0,0 @@ -#! /usr/bin/env bash - -if [[ $TRAVIS_BRANCH == "production" ]]; then - nosetests -v --with-coverage tests.test_api tests.test_streaming tests.test_cursors tests.test_utils -else - USE_REPLAY=1 nosetests -v --with-coverage tests.test_api tests.test_utils -fi -- 2.25.1