Mercurial > p > roundup > code
annotate .travis.yml @ 5369:44896f09a375
Upgrade xapian from 1.2.16 to 1.3.7. As of 1.3.3 it looks like it is
python 3 compatible.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 20 Jul 2018 19:38:10 -0400 |
| parents | 904d7cd19d67 |
| children | 90836bd3b1c0 |
| rev | line source |
|---|---|
| 5003 | 1 language: python |
| 2 python: | |
| 3 - 2.7 | |
|
5368
904d7cd19d67
Set up travis to run python 3.4 across code as well. Do not fail the
John Rouillard <rouilj@ieee.org>
parents:
5259
diff
changeset
|
4 - 3.4 |
|
904d7cd19d67
Set up travis to run python 3.4 across code as well. Do not fail the
John Rouillard <rouilj@ieee.org>
parents:
5259
diff
changeset
|
5 |
|
904d7cd19d67
Set up travis to run python 3.4 across code as well. Do not fail the
John Rouillard <rouilj@ieee.org>
parents:
5259
diff
changeset
|
6 matrix: |
|
904d7cd19d67
Set up travis to run python 3.4 across code as well. Do not fail the
John Rouillard <rouilj@ieee.org>
parents:
5259
diff
changeset
|
7 allow_failures: |
|
904d7cd19d67
Set up travis to run python 3.4 across code as well. Do not fail the
John Rouillard <rouilj@ieee.org>
parents:
5259
diff
changeset
|
8 - python: 3.4 |
| 5003 | 9 |
| 10 sudo: false | |
| 11 | |
| 12 addons: | |
| 13 apt: | |
| 14 packages: | |
| 15 # Required to build/install the xapian-binding | |
| 16 - libxapian-dev | |
| 17 # Required to install pyme | |
| 18 - libgpgme11-dev | |
| 19 - swig | |
| 20 | |
| 21 before_install: | |
| 22 - cd /tmp | |
|
5369
44896f09a375
Upgrade xapian from 1.2.16 to 1.3.7. As of 1.3.3 it looks like it is
John Rouillard <rouilj@ieee.org>
parents:
5368
diff
changeset
|
23 - curl -s -O https://oligarchy.co.uk/xapian/1.3.7/xapian-bindings-1.3.7.tar.xz |
|
44896f09a375
Upgrade xapian from 1.2.16 to 1.3.7. As of 1.3.3 it looks like it is
John Rouillard <rouilj@ieee.org>
parents:
5368
diff
changeset
|
24 - tar -Jxvf xapian-bindings-1.3.7.tar.xz |
|
44896f09a375
Upgrade xapian from 1.2.16 to 1.3.7. As of 1.3.3 it looks like it is
John Rouillard <rouilj@ieee.org>
parents:
5368
diff
changeset
|
25 - cd xapian-bindings-1.3.7/ |
| 5003 | 26 - ./configure --prefix=$VIRTUAL_ENV --with-python && make && make install |
| 27 | |
| 28 # change back to the checked out repository directory | |
| 29 - cd $TRAVIS_BUILD_DIR | |
| 30 | |
| 31 install: | |
|
5099
a7cf77108e97
issue2550636 instal whosh as part of travis ci to try to get indexer testing working
John Rouillard <rouilj@ieee.org>
parents:
5060
diff
changeset
|
32 - pip install MySQL-python psycopg2 pytz pyme whoosh |
|
5060
de420f34d696
Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents:
5059
diff
changeset
|
33 - pip install pytest-cov codecov |
| 5003 | 34 |
| 35 before_script: | |
| 36 # set up mysql database | |
| 37 - mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";' | |
| 38 | |
| 39 # set up postgresql database | |
| 40 - psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres | |
| 41 | |
| 42 # HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901 | |
| 43 # needed for test_mysql.mysqlDBTest.testFilteringSpecialChars | |
| 44 - sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py | |
| 45 | |
| 46 script: | |
|
5060
de420f34d696
Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents:
5059
diff
changeset
|
47 - py.test -v test/ --cov=roundup |
|
de420f34d696
Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents:
5059
diff
changeset
|
48 |
|
de420f34d696
Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents:
5059
diff
changeset
|
49 after_success: |
|
de420f34d696
Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents:
5059
diff
changeset
|
50 - codecov |
