annotate .travis.yml @ 5372:5e5f1dfb1596

Add python-sphinx. Looks like it's needed to build: xapian-bindings-1.3.7 but wasn't required before, or maybe was pulled in automatically bu the 1.2 debian package??
author John Rouillard <rouilj@ieee.org>
date Fri, 20 Jul 2018 20:51:20 -0400
parents dee9eb81bfa8
children faf3f01ef446
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
1 language: python
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
2 python:
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
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
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
9
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
10 sudo: false
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
11
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
12 addons:
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
13 apt:
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
14 packages:
5372
5e5f1dfb1596 Add python-sphinx. Looks like it's needed to build:
John Rouillard <rouilj@ieee.org>
parents: 5371
diff changeset
15 # required for install of 1.3.7 version of xapian??
5e5f1dfb1596 Add python-sphinx. Looks like it's needed to build:
John Rouillard <rouilj@ieee.org>
parents: 5371
diff changeset
16 - python-sphinx
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
17 # Required to install pyme
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
18 - libgpgme11-dev
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
19 - swig
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
20
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
21 before_install:
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
22 - cd /tmp
5370
90836bd3b1c0 Try to install xapian-core from source. Deb package on ubuntu trusty
John Rouillard <rouilj@ieee.org>
parents: 5369
diff changeset
23 # install core 1.3.7 as version in trusty deb is 1.2. need 1.3 for python 3.
90836bd3b1c0 Try to install xapian-core from source. Deb package on ubuntu trusty
John Rouillard <rouilj@ieee.org>
parents: 5369
diff changeset
24 - curl -s -O https://oligarchy.co.uk/xapian/1.3.7/xapian-core-1.3.7.tar.xz
90836bd3b1c0 Try to install xapian-core from source. Deb package on ubuntu trusty
John Rouillard <rouilj@ieee.org>
parents: 5369
diff changeset
25 - tar -Jxvf xapian-core-1.3.7.tar.xz
90836bd3b1c0 Try to install xapian-core from source. Deb package on ubuntu trusty
John Rouillard <rouilj@ieee.org>
parents: 5369
diff changeset
26 - cd xapian-core-1.3.7/
5371
dee9eb81bfa8 Add sudo to install?? I doubt this will work but....
John Rouillard <rouilj@ieee.org>
parents: 5370
diff changeset
27 - ./configure && make && sudo make install
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
28 - 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
29 - 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
30 - cd xapian-bindings-1.3.7/
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
31 - ./configure --prefix=$VIRTUAL_ENV --with-python && make && make install
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
32
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
33 # change back to the checked out repository directory
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
34 - cd $TRAVIS_BUILD_DIR
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
35
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
36 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
37 - pip install MySQL-python psycopg2 pytz pyme whoosh
5060
de420f34d696 Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents: 5059
diff changeset
38 - pip install pytest-cov codecov
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
39
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
40 before_script:
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
41 # set up mysql database
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
42 - mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
43
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
44 # set up postgresql database
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
45 - psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
46
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
47 # HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
48 # needed for test_mysql.mysqlDBTest.testFilteringSpecialChars
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
49 - sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
50
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
51 script:
5060
de420f34d696 Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents: 5059
diff changeset
52 - py.test -v test/ --cov=roundup
de420f34d696 Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents: 5059
diff changeset
53
de420f34d696 Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents: 5059
diff changeset
54 after_success:
de420f34d696 Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents: 5059
diff changeset
55 - codecov

Roundup Issue Tracker: http://roundup-tracker.org/