Created
March 17, 2015 00:45
-
-
Save jerrykan/13794fa2fbac00ded23c to your computer and use it in GitHub Desktop.
.travis.yml file for roundup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: python | |
python: | |
- "2.6" | |
- "2.7" | |
before_install: | |
# workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901 | |
# needed for test_mysql.mysqlDBTest.testFilteringSpecialChars | |
- sudo sed -i 's/utf8_unicode_ci/utf8_general_ci/' /etc/mysql/my.cnf | |
- sudo restart mysql | |
# update apt package list | |
- sudo apt-get update -qq | |
# install xapian bindings from source | |
- sudo apt-get install uuid-dev | |
- mkdir -p $VIRTUAL_ENV/packages | |
- cd $VIRTUAL_ENV/packages | |
- wget -q http://oligarchy.co.uk/xapian/1.2.8/xapian-core-1.2.8.tar.gz | |
- wget -q http://oligarchy.co.uk/xapian/1.2.8/xapian-bindings-1.2.8.tar.gz | |
- tar -zxvf xapian-core-1.2.8.tar.gz | |
- tar -zxvf xapian-bindings-1.2.8.tar.gz | |
- cd xapian-core-1.2.8/ | |
- ./configure --prefix=$VIRTUAL_ENV && make && make install | |
- cd ../xapian-bindings-1.2.8/ | |
- ./configure --prefix=$VIRTUAL_ENV --with-python && make && make install | |
# install dependencies for pyme | |
- sudo apt-get install libgpgme11-dev swig | |
# change back to the checked out repository directory | |
- cd $TRAVIS_BUILD_DIR | |
install: | |
- pip install MySQL-python psycopg2 | |
# includes a patch for python 2.6 support | |
- pip install git+https://bitbucket.org/malb/pyme.git@459f3eca65#egg=pyme | |
before_script: | |
# set up mysql database | |
- mysql -u root -e 'CREATE DATABASE rounduptest;' | |
- mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";' | |
# set up postgresql database | |
- psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres | |
script: | |
- python run_tests.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment