xapian-haystack/.travis.yml

79 lines
2.6 KiB
YAML
Raw Permalink Normal View History

2020-04-23 12:18:20 +00:00
os: linux
dist: xenial
2014-05-11 16:24:57 +00:00
language: python
2020-04-23 14:20:41 +00:00
before_install:
- sudo apt-get update
- sudo apt-get -y install python3-sphinx
- sudo apt-get -y remove python-sphinx
2020-04-23 12:18:20 +00:00
jobs:
2015-01-11 09:58:52 +00:00
include:
2020-04-23 08:50:49 +00:00
- python: 3.8
2020-04-23 12:18:20 +00:00
env: DJANGO_VERSION=">=3.0,<3.1" XAPIAN_VERSION=1.4.15
2020-04-23 15:09:16 +00:00
- python: 3.8
env: DJANGO_VERSION=">=2.2,<2.3" XAPIAN_VERSION=1.4.15
2020-04-23 08:50:49 +00:00
- python: 3.8
2020-04-23 14:20:41 +00:00
env: DJANGO_VERSION=">=2.1,<2.2" XAPIAN_VERSION=1.4.15
2020-04-23 15:19:25 +00:00
- python: 3.7
env: DJANGO_VERSION=">=3.0,<3.1" XAPIAN_VERSION=1.4.15
- python: 3.7
2020-04-23 14:31:37 +00:00
env: DJANGO_VERSION=">=2.1,<2.2" XAPIAN_VERSION=1.4.15
- python: 3.7
2020-04-23 14:31:37 +00:00
env: DJANGO_VERSION=">=2.0,<2.1" XAPIAN_VERSION=1.4.15
- python: 3.7
2020-04-23 14:31:37 +00:00
env: DJANGO_VERSION=">=1.11,<2.0" XAPIAN_VERSION=1.4.15
2020-04-23 09:37:43 +00:00
- python: 3.6
2020-04-23 14:31:37 +00:00
env: DJANGO_VERSION=">=3.0,<3.1" XAPIAN_VERSION=1.4.15
2020-04-23 09:37:43 +00:00
- python: 3.6
2020-04-23 14:31:37 +00:00
env: DJANGO_VERSION=">=2.2,<2.3" XAPIAN_VERSION=1.4.15
- python: 3.6
2020-04-23 14:31:37 +00:00
env: DJANGO_VERSION=">=2.1,<2.2" XAPIAN_VERSION=1.4.15
- python: 3.6
2020-04-23 14:31:37 +00:00
env: DJANGO_VERSION=">=2.0,<2.1" XAPIAN_VERSION=1.4.15
- python: 3.6
2020-04-23 14:31:37 +00:00
env: DJANGO_VERSION=">=1.11,<2.0" XAPIAN_VERSION=1.4.15
- python: 3.5
2020-04-23 14:31:37 +00:00
env: DJANGO_VERSION=">=2.1,<2.2" XAPIAN_VERSION=1.4.15
- python: 3.5
2020-04-23 14:31:37 +00:00
env: DJANGO_VERSION=">=2.0,<2.1" XAPIAN_VERSION=1.4.15
- python: 3.5
2020-04-23 14:31:37 +00:00
env: DJANGO_VERSION=">=1.11,<2.0" XAPIAN_VERSION=1.4.15
- python: 3.4
2020-04-23 14:20:41 +00:00
env: DJANGO_VERSION=">=2.0,<2.1" XAPIAN_VERSION=1.4.15
- python: 3.4
2020-04-23 14:31:37 +00:00
env: DJANGO_VERSION=">=1.11,<2.0" XAPIAN_VERSION=1.4.15
2015-01-11 09:58:52 +00:00
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# Xapian requires uuid-dev, Xapian ==1.3.3 requires compilers with c++11.
- uuid-dev
- gcc-4.8
- g++-4.8
2015-04-16 13:27:23 +00:00
2014-05-11 16:24:57 +00:00
install:
2015-01-11 09:58:52 +00:00
# install Xapian
- CXX=g++-4.8 ./install_xapian.sh $XAPIAN_VERSION
- pip install "Django${DJANGO_VERSION}"
2015-11-11 22:46:24 +00:00
- pip install coveralls
2014-05-11 16:24:57 +00:00
2015-01-11 09:58:52 +00:00
# install Django haystack
- cd .. # move from xapian-haystack
- git clone https://github.com/toastdriven/django-haystack.git
# cp xapian-haystack to django-haystack
2014-05-11 16:24:57 +00:00
- cp xapian-haystack/xapian_backend.py django-haystack/haystack/backends
- cp -r xapian-haystack/tests/* django-haystack/test_haystack/
- cp xapian-haystack/tests/xapian_tests/__init__.py django-haystack/test_haystack/
2015-11-11 22:46:24 +00:00
- cp xapian-haystack/.coveragerc django-haystack/
2014-05-11 16:24:57 +00:00
script:
2015-04-16 18:08:13 +00:00
- cd django-haystack/
2015-11-11 22:46:24 +00:00
- PYTHONPATH=`pwd` coverage run `which django-admin.py` test test_haystack.xapian_tests --settings=test_haystack.xapian_settings
after_success: coveralls