forked from notanumber/xapian-haystack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (60 loc) · 2.15 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
sudo: false
language: python
matrix:
include:
- python: 3.4
env: DJANGO_VERSION=1.10 XAPIAN_VERSION=1.4.1
- python: 3.4
env: DJANGO_VERSION=1.9 XAPIAN_VERSION=1.4.1
- python: 3.4
env: DJANGO_VERSION=1.8 XAPIAN_VERSION=1.4.1
- python: 3.4
env: DJANGO_VERSION=1.10 XAPIAN_VERSION=1.3.3
- python: 3.4
env: DJANGO_VERSION=1.9 XAPIAN_VERSION=1.3.3
- python: 3.4
env: DJANGO_VERSION=1.8 XAPIAN_VERSION=1.3.3
- python: 2.7
env: DJANGO_VERSION=1.10 XAPIAN_VERSION=1.4.1
- python: 2.7
env: DJANGO_VERSION=1.9 XAPIAN_VERSION=1.4.1
- python: 2.7
env: DJANGO_VERSION=1.8 XAPIAN_VERSION=1.4.1
- python: 2.7
env: DJANGO_VERSION=1.10 XAPIAN_VERSION=1.3.3
- python: 2.7
env: DJANGO_VERSION=1.9 XAPIAN_VERSION=1.3.3
- python: 2.7
env: DJANGO_VERSION=1.8 XAPIAN_VERSION=1.3.3
- python: 2.7
env: DJANGO_VERSION=1.10 XAPIAN_VERSION=1.2.24
- python: 2.7
env: DJANGO_VERSION=1.9 XAPIAN_VERSION=1.2.24
- python: 2.7
env: DJANGO_VERSION=1.8 XAPIAN_VERSION=1.2.24
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
install:
# install Xapian
- CXX=g++-4.8 ./install_xapian.sh $XAPIAN_VERSION
- pip install Django==$DJANGO_VERSION
- pip install coveralls
# install Django haystack
- cd .. # move from xapian-haystack
- git clone https://github.com/toastdriven/django-haystack.git
# cp xapian-haystack to django-haystack
- 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/
- cp xapian-haystack/.coveragerc django-haystack/
script:
- cd django-haystack/
- PYTHONPATH=`pwd` coverage run `which django-admin.py` test test_haystack.xapian_tests --settings=test_haystack.xapian_settings
after_success: coveralls