Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Generalise TravisCI Python 3 support

  • Loading branch information...
commit f066764a687dcbf0a00aca8f489dc1319fec7698 1 parent e2cfa80
Peter Cock peterjc authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 .travis.yml
6 .travis.yml
View
@@ -33,14 +33,16 @@ before_install:
#Installing mysql-python does not work under Python 3.2
- "export MSQL=$PG"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then export MSQL=no; fi"
+ - "if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then export MSQL=no; fi"
- "if [[ $MSQL == 'yes' ]]; then pip install mysql-python --use-mirrors 2>&1 | tail -n 2; fi"
install:
- "/usr/bin/yes | $PYTHON_EXE setup.py install 2>&1 | tail -n 2"
before_script:
- - "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then cd build/py3.2/Tests; fi"
- - "if [[ $TRAVIS_PYTHON_VERSION != '3.2' ]]; then cd Tests; fi"
+ - cd Tests
+ - "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then cd ../build/py3.2/Tests; fi"
+ - "if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then cd ../build/py3.3/Tests; fi"
script:
- $PYTHON_EXE run_tests.py --offline
Please sign in to comment.
Something went wrong with that request. Please try again.