|
5003
|
1 language: python
|
|
|
2 python:
|
|
|
3 - 2.6
|
|
|
4 - 2.7
|
|
|
5
|
|
|
6 sudo: false
|
|
|
7
|
|
|
8 addons:
|
|
|
9 apt:
|
|
|
10 packages:
|
|
|
11 # Required to build/install the xapian-binding
|
|
|
12 - libxapian-dev
|
|
|
13 # Required to install pyme
|
|
|
14 - libgpgme11-dev
|
|
|
15 - swig
|
|
|
16
|
|
|
17 before_install:
|
|
|
18 - cd /tmp
|
|
|
19 - wget -q http://oligarchy.co.uk/xapian/1.2.8/xapian-bindings-1.2.8.tar.gz
|
|
|
20 - tar -zxvf xapian-bindings-1.2.8.tar.gz
|
|
|
21 - cd xapian-bindings-1.2.8/
|
|
|
22 - ./configure --prefix=$VIRTUAL_ENV --with-python && make && make install
|
|
|
23
|
|
|
24 # change back to the checked out repository directory
|
|
|
25 - cd $TRAVIS_BUILD_DIR
|
|
|
26
|
|
|
27 install:
|
|
|
28 - pip install MySQL-python psycopg2 pytz
|
|
|
29
|
|
|
30 # includes a patch for python 2.6 support
|
|
|
31 - pip install git+https://bitbucket.org/malb/pyme.git@459f3eca65#egg=pyme
|
|
|
32
|
|
|
33 before_script:
|
|
|
34 # set up mysql database
|
|
|
35 - mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
|
|
|
36
|
|
|
37 # set up postgresql database
|
|
|
38 - psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
|
|
|
39
|
|
|
40 # HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901
|
|
|
41 # needed for test_mysql.mysqlDBTest.testFilteringSpecialChars
|
|
|
42 - sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py
|
|
|
43
|
|
|
44 script:
|
|
|
45 python run_tests.py -v
|