Mercurial > p > roundup > code
annotate .travis.yml @ 5177:b440da5b28ca
Check in the signed cert needed to complete an http connection to a
site with a let's encrypt signed certificate.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 12 Jan 2017 21:24:18 -0500 |
| parents | 04e77d293ed0 |
| children | 1800d19a55a0 |
| rev | line source |
|---|---|
| 5003 | 1 language: python |
| 2 python: | |
| 3 - 2.7 | |
| 4 | |
| 5 sudo: false | |
| 6 | |
| 7 addons: | |
| 8 apt: | |
| 9 packages: | |
| 10 # Required to build/install the xapian-binding | |
| 11 - libxapian-dev | |
| 12 # Required to install pyme | |
| 13 - libgpgme11-dev | |
| 14 - swig | |
|
5176
04e77d293ed0
Add ca-certficates package so that wget can pull https url's.
John Rouillard <rouilj@ieee.org>
parents:
5099
diff
changeset
|
15 # allow wget to pull https url's |
|
04e77d293ed0
Add ca-certficates package so that wget can pull https url's.
John Rouillard <rouilj@ieee.org>
parents:
5099
diff
changeset
|
16 - ca-certificates |
| 5003 | 17 |
| 18 before_install: | |
| 19 - cd /tmp | |
|
5177
b440da5b28ca
Check in the signed cert needed to complete an http connection to a
John Rouillard <rouilj@ieee.org>
parents:
5176
diff
changeset
|
20 - wget -q --ca-certificate $TRAVIS_BUILD_DIR/tools/lets-encrypt-x3-cross-signed.pem https://oligarchy.co.uk/xapian/1.2.8/xapian-bindings-1.2.8.tar.gz |
| 5003 | 21 - tar -zxvf xapian-bindings-1.2.8.tar.gz |
| 22 - cd xapian-bindings-1.2.8/ | |
| 23 - ./configure --prefix=$VIRTUAL_ENV --with-python && make && make install | |
| 24 | |
| 25 # change back to the checked out repository directory | |
| 26 - cd $TRAVIS_BUILD_DIR | |
| 27 | |
| 28 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
|
29 - pip install MySQL-python psycopg2 pytz pyme whoosh |
|
5060
de420f34d696
Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents:
5059
diff
changeset
|
30 - pip install pytest-cov codecov |
| 5003 | 31 |
| 32 before_script: | |
| 33 # set up mysql database | |
| 34 - mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";' | |
| 35 | |
| 36 # set up postgresql database | |
| 37 - psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres | |
| 38 | |
| 39 # HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901 | |
| 40 # needed for test_mysql.mysqlDBTest.testFilteringSpecialChars | |
| 41 - sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py | |
| 42 | |
| 43 script: | |
|
5060
de420f34d696
Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents:
5059
diff
changeset
|
44 - py.test -v test/ --cov=roundup |
|
de420f34d696
Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents:
5059
diff
changeset
|
45 |
|
de420f34d696
Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents:
5059
diff
changeset
|
46 after_success: |
|
de420f34d696
Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents:
5059
diff
changeset
|
47 - codecov |
