annotate .travis.yml @ 5494:b7fa56ced601

use gpg module instead of pyme module for PGP encryption
author Christof Meerwald <cmeerw@cmeerw.org>
date Sun, 12 Aug 2018 16:17:14 +0100
parents 17eea0eac04e
children e7ff655d0d71
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:
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
14 sources:
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
15 - sourceline: ppa:xapian-backports/ppa
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
16
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
17 packages:
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
18 # Required to build/install the xapian-binding
5373
faf3f01ef446 Run into a roadblock with trying to install python 3 compatible
John Rouillard <rouilj@ieee.org>
parents: 5372
diff changeset
19 - libxapian-dev
5494
b7fa56ced601 use gpg module instead of pyme module for PGP encryption
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5482
diff changeset
20 # Required to install gpg
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
21 - libgpgme11-dev
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
22 - swig
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
23
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
24 before_install:
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
25 # Sphinx required to build the xapian python bindings
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
26 - pip install sphinx
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
27 - XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1)
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
28 - cd /tmp
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
29 - curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
30 - tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
31 - cd xapian-bindings-$XAPIAN_VER/
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
32 - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python; fi
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
33 - if [[ $TRAVIS_PYTHON_VERSION == "3."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
34 - make && make install
5003
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 # change back to the checked out repository directory
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
37 - cd $TRAVIS_BUILD_DIR
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
38
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
39 install:
5494
b7fa56ced601 use gpg module instead of pyme module for PGP encryption
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5482
diff changeset
40 - pip install gpg psycopg2 pytz whoosh
b7fa56ced601 use gpg module instead of pyme module for PGP encryption
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5482
diff changeset
41 - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then pip install MySQL-python; fi
5060
de420f34d696 Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents: 5059
diff changeset
42 - pip install pytest-cov codecov
5003
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 before_script:
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
45 # set up mysql database
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
46 - 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
47
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
48 # set up postgresql database
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
49 - psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
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 # HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
52 # needed for test_mysql.mysqlDBTest.testFilteringSpecialChars
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
53 - 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
54
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
55 script:
5060
de420f34d696 Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents: 5059
diff changeset
56 - py.test -v test/ --cov=roundup
de420f34d696 Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents: 5059
diff changeset
57
de420f34d696 Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents: 5059
diff changeset
58 after_success:
de420f34d696 Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents: 5059
diff changeset
59 - codecov

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