1 # Travis configuration for building Xapian. This is
2 # fairly intensive, so we only enable it for pull
5 # Right now, we build on containerised linux, which
6 # travis provides as Ubuntu 12.04 LTS so we have to
7 # upgrade a lot of stuff to get something vaguely
13 # Tell bootstrap where to clone ./common from
14 - XAPIAN_COMMON_CLONE_URL=https://github.com/xapian/xapian.git
22 - ubuntu-toolchain-r-test
37 # Installing it isn't enough!
38 env: USE_CC=gcc-4.9 USE_CXX=g++-4.9
40 # Clang is already installed, but we want to build using the
41 # llvm c++ library, not the GCC one. (Otherwise, depending on
42 # the GCC version, there can be issues.)
46 - ubuntu-toolchain-r-test
60 # We also have to disable an error, because (older?)
61 # perl header files don't play nicely with clang.
62 env: USE_CC=clang USE_CXX=clang++ 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