forked from xapian/xapian
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
172 lines (170 loc) · 5.68 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
dist: xenial
language: cpp
notifications:
irc: "chat.freenode.net#xapian-devel"
matrix:
include:
- compiler: gcc
os: linux
addons:
apt:
packages:
- doxygen
- graphviz
- help2man
- python-docutils
- pngcrush
- python-sphinx
- uuid-dev
- libpcre3-dev
- libmagic-dev
- lua5.3
- liblua5.3-dev
- mono-devel
- python-dev
- python3-dev
- tcl
- libsvm-dev
- libicu-dev
- pkg-config
- libpoppler-cpp-dev
- libe-book-dev
- libetonyek-dev
- libtesseract-dev
- libgmime-2.6-dev
env: CPPFLAGS=-D_GLIBCXX_DEBUG
- compiler: clang
os: linux
# Clang is already installed, but we want to build using the
# llvm c++ library, not the GCC one. (Otherwise, depending on
# the GCC version, there can be issues.)
addons:
apt:
packages:
- doxygen
- graphviz
- help2man
- python-docutils
- pngcrush
- python-sphinx
- uuid-dev
- libpcre3-dev
- libmagic-dev
- tcl
- libsvm-dev
- libc++-dev
- libicu-dev
- pkg-config
- libpoppler-cpp-dev
- libe-book-dev
- libetonyek-dev
- libtesseract-dev
- libgmime-2.6-dev
env: USE_CC=clang USE_CXX='clang++ -stdlib=libc++'
- compiler: gcc
os: linux
# Test with trusty as it has GCC 4.8 which is the oldest GCC we currently
# aim to support.
dist: trusty
addons:
apt:
packages:
- doxygen
- graphviz
- help2man
- python-docutils
- pngcrush
- python-sphinx
- uuid-dev
- libpcre3-dev
- libmagic-dev
- lua5.2
- liblua5.2-dev
- mono-devel
- python-dev
- python3-dev
- tcl
- libsvm-dev
- libpoppler-cpp-dev
- libtesseract-dev
- os: linux
addons:
apt:
packages:
- doxygen
- graphviz
- help2man
- python-docutils
- python-pygments
- pngcrush
language: node_js
node_js:
- node
services:
- docker
before_script:
# Bootstrap only xapian-core for emscripten build.
- travis_retry ./bootstrap xapian-core
- ./configure CXXFLAGS=-O0 --disable-backend-honey --disable-backend-inmemory --disable-backend-remote
- make -j2
- make -j2 distclean
- cd xapian-core
- docker run -v $(pwd):/src trzeci/emscripten emconfigure ./configure CPPFLAGS='-DFLINTLOCK_USE_FLOCK' CXXFLAGS='-Oz -s USE_ZLIB=1 -fno-rtti' --disable-backend-honey --disable-backend-inmemory --disable-shared --disable-backend-remote
script:
- docker run -v $(pwd):/src trzeci/emscripten emmake make
- docker run -v $(pwd):/src trzeci/emscripten em++ -Oz -s USE_ZLIB=1 -std=c++11 -s WASM=1 -Iinclude emscripten/xapianjstest.cc .libs/libxapian-1.5.a -o emscripten/xapianjstest.js
- cd emscripten && node xapianjstest.js
- os: osx
addons:
homebrew:
update: true
packages:
- doxygen
- gmime
- graphviz
- help2man
- icu4c
- libetonyek
- libiconv
- libmagic
- libsvm
- lua
- mono
- pcre
- pkgconfig
- pngcrush
- poppler
- python
- python2
- tesseract
before_install:
- travis_retry pip2 install sphinx docutils
- travis_retry pip3 install sphinx
- mkdir -p /tmp/xapian-libsvm-fixed-include
- ln -sF "`ls -1d /usr/local/Cellar/libsvm/3.*/include|tail -n 1`" /tmp/xapian-libsvm-fixed-include/libsvm
env: PYTHON2=/usr/local/bin/python2 CPPFLAGS=-I/tmp/xapian-libsvm-fixed-include PKG_CONFIG_PATH=/usr/local/opt/icu4c/lib/pkgconfig confargs='--prefix=/Users/travis/XapianInstall --with-libiconv-prefix=/usr/local/opt/libiconv' installcore='make -C xapian-core install'
- os: linux
# (Ab)use env to label this build:
env: dummy="Automated run of xapian-check-patch"
# Override "before_script" to do nothing
before_script:
# Override "script" to run the style checking script
# "xapian-check-patch":
# * for a PR, CI is run on the PR branch merged with the target branch,
# so just check the diff from the target branch to that merged branch.
# * Otherwise we check changes between the common ancestor of master and
# the branch and the revision being checked.
script:
- git diff `[ "$TRAVIS_PULL_REQUEST" = false ] && echo master... || echo "$TRAVIS_BRANCH.."`|xapian-maintainer-tools/xapian-check-patch
before_script:
# Bootstrap everything (including letor, which isn't done
# by default), then configure using our chosen compiler.
- travis_retry ./bootstrap xapian-core xapian-applications/omega swig xapian-bindings xapian-letor
- ./configure $confargs CC="$USE_CC" CXX="$USE_CXX"
script:
- make
- $installcore
- make check VERBOSE=1 AUTOMATED_TESTING=1
# grep '^' passes through all input while giving a non-zero exit status if
# that input is empty.
- git status --porcelain|grep '^' && { echo "The generated files listed above are not in .gitignore" ; exit 1; }; true