1 # Travis configuration for building Xapian. This is fairly intensive, so
2 # we only enable it for pull requests.
4 # Right now, we build on containerised linux, which defaults to the
5 # ancient Ubuntu 12.04 LTS. Specify "dist: trusty" so we get something
6 # which is "only" 2.5 years old.
12 # Tell bootstrap where to clone ./common from
13 - XAPIAN_COMMON_CLONE_URL=https://github.com/xapian/xapian.git
34 # Clang is already installed, but we want to build using the
35 # llvm c++ library, not the GCC one. (Otherwise, depending on
36 # the GCC version, there can be issues.)
52 # We also have to disable an error, because (older?)
53 # perl header files don't play nicely with clang.
54 env: USE_CC=clang USE_CXX='clang++ -stdlib=libc++' CXXFLAGS=-Wno-error=reserved-user-defined-literal
58 - brew install doxygen help2man graphviz pngcrush libmagic pcre libsvm
59 - pip install sphinx docutils
60 - mkdir -p /tmp/libsvm-fixed-include
61 - ln -sF /usr/local/Cellar/libsvm/3.21/include /tmp/libsvm-fixed-include/libsvm
62 env: CXXFLAGS=-Wno-error=reserved-user-defined-literal
65 # Bootstrap everything (including letor, which isn't done
66 # by default), then configure using our chosen compiler.
67 - ./bootstrap xapian-core xapian-applications/omega swig xapian-bindings xapian-letor
68 - ./configure CC="$USE_CC" CXX="$USE_CXX"
69 script: make && make check VERBOSE=1 AUTOMATED_TESTING=1