view .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
line wrap: on
line source

language: python
python:
  - 2.7
  - 3.4

matrix:
  allow_failures:
    - python: 3.4

sudo: false

addons:
  apt:
    packages:
      # required for install of 1.3.7 version of xapian??
      - python-sphinx
      # Required to install pyme
      - libgpgme11-dev
      - swig

before_install:
  - cd /tmp
  # install core 1.3.7 as version in trusty deb is 1.2. need 1.3 for python 3.
  - curl -s -O https://oligarchy.co.uk/xapian/1.3.7/xapian-core-1.3.7.tar.xz
  - tar -Jxvf xapian-core-1.3.7.tar.xz
  - cd xapian-core-1.3.7/
  - ./configure && make && sudo make install
  - curl -s -O https://oligarchy.co.uk/xapian/1.3.7/xapian-bindings-1.3.7.tar.xz
  - tar -Jxvf xapian-bindings-1.3.7.tar.xz
  - cd xapian-bindings-1.3.7/
  - ./configure --prefix=$VIRTUAL_ENV --with-python && make && make install

  # change back to the checked out repository directory
  - cd $TRAVIS_BUILD_DIR

install:
  - pip install MySQL-python psycopg2 pytz pyme whoosh
  - pip install pytest-cov codecov

before_script:
  # set up mysql database
  - 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

  # HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901
  #   needed for test_mysql.mysqlDBTest.testFilteringSpecialChars
  - sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py

script:
  - py.test -v test/ --cov=roundup

after_success:
  - codecov

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