Skip to content

Commit

Permalink
travis: move setting RUN_TESTS into before_script
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Apr 5, 2015
1 parent e2de5c0 commit f617b9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ install:
# Install from wheelhouse.
- pip install psycopg2 tox $REQ
- pip freeze
before_script:
- which pep8 || psql -c 'create database autocomplete_light_test;' -U postgres
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script:
before_script:
- which pep8 || psql -c 'create database autocomplete_light_test;' -U postgres
- RUN_TESTS="tox -- autocomplete_light --ds=test_project.settings_postgres"
# Run tests either with or without coverage (being installed).
- command -v coveralls && RUN_TESTS="$RUN_TESTS --cov" || true
script:
# Run pep8 or the tests.
- which pep8 && { pep8 --exclude=example_apps,tests,migrations --ignore=E124,E128 autocomplete_light; return $?; } || travis_retry $RUN_TESTS
after_success:
Expand Down

0 comments on commit f617b9c

Please sign in to comment.