diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2013-05-10 05:50:35 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2013-05-10 05:50:35 +0200 |
| commit | 39bcef0bdc263fd2ac682f932b64bba5fdcea496 (patch) | |
| tree | b6b5e2a5e2887d9d63f8e1e5146b52861a75e45b | |
| parent | 706977ad962e4c476fc908ccb463f4079dedb650 (diff) | |
| download | sqlparse-39bcef0bdc263fd2ac682f932b64bba5fdcea496.tar.gz | |
Simplify travis configuration.
| -rw-r--r-- | .travis.yml | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/.travis.yml b/.travis.yml index 20973e5..ca33090 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,13 @@ language: python -python: - - "2.5" - - "2.6" - - "2.7" - - "pypy" - - "3.2" +python: 2.7 +env: + - TOX_ENV=py25 + - TOX_ENV=py26 + - TOX_ENV=py27 + - TOX_ENV=py32 + - TOX_ENV=py33 + - TOX_ENV=pypy install: - - pip install pytest pytest-cov - - if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then mkdir -p py3k/ && cp -r tests/ py3k/ && 2to3 -w --no-diffs -n py3k/tests; fi - - python setup.py install - - cp -r tests/ extras/ + - pip install tox script: - - if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then cd py3k/ && py.test -v tests; fi - # Change directory to avoid that the local sqlparse module is tested - # instead of the installed one. This is relevant for the 2to3 version. - - if [[ $TRAVIS_PYTHON_VERSION != '3.2' ]]; then cd extras/ && py.test -v --cov=sqlparse tests; fi
\ No newline at end of file + - tox -e $TOX_ENV
\ No newline at end of file |
