Permalink
Browse files

Install psycopg2 for C Python under Travis-CI (for BioSQL)

  • Loading branch information...
1 parent 4b4ecb2 commit 9a5e7210d9e4acb5c1a9aa78fa9ce0d7fc87d54b @peterjc peterjc committed Aug 15, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 .travis.yml
View
@@ -27,6 +27,12 @@ install:
- "if [[ $TRAVIS_PYTHON_VERSION == 'pypy1.9' ]]; then wget https://bitbucket.org/pypy/pypy/downloads/pypy-1.9-linux.tar.bz2 -O pypy.tar.bz2; tar -xvjf pypy.tar.bz2 | tail; export PYTHON_EXE=$PWD/pypy-1.9/bin/pypy; fi"
- "/usr/bin/yes | $PYTHON_EXE setup.py install 2>&1 | tail"
- "sudo apt-get install t-coffee muscle mafft probcons wise emboss 2>&1 | tail"
+#Installing psycopg2 does not work under PyPy or Jython
+ - "export PG=yes"
+ - "if [[ $TRAVIS_PYTHON_VERSION == 'jython2.5' ]]; then export PG=no; fi"
+ - "if [[ $TRAVIS_PYTHON_VERSION == 'pypy1.8' ]]; then export PG=no; fi"
+ - "if [[ $TRAVIS_PYTHON_VERSION == 'pypy1.9' ]]; then export PG=no; fi"
+ - "if [[ $PG == 'yes' ]]; then pip install psycopg2 --use-mirrors 2>&1 | tail; fi"
before_script:
- "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then cd build/py3.2/Tests; fi"

0 comments on commit 9a5e721

Please sign in to comment.