5 irc: "chat.freenode.net#xapian-devel"
8 # Tell bootstrap where to clone ./common from
9 - XAPIAN_COMMON_CLONE_URL=https://github.com/xapian/xapian.git
10 - HOMEBREW_PACKAGES='doxygen help2man graphviz pngcrush libmagic pcre lua mono python2 python'
18 - ubuntu-toolchain-r-test
37 env: USE_CC=gcc-4.7 USE_CXX=g++-4.7
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.)
57 # We also have to disable an error, because (older?)
58 # perl header files don't play nicely with clang.
59 env: USE_CC=clang USE_CXX='clang++ -stdlib=libc++' CXXFLAGS=-Wno-error=reserved-user-defined-literal
63 # "brew install" unhelpfully errors out if any package listed is
64 # already installed and up-to-date, but travis change what's installed
65 # by default from time to time so it's brittle to just filter out those
66 # installed by default from the list we need. Instead we ignore the
67 # exit status from "brew install", then check later that
68 # "brew list --versions" says all the packages requested are installed.
69 - brew install $HOMEBREW_PACKAGES || true
70 - brew list --versions $HOMEBREW_PACKAGES
71 - pip2 install sphinx docutils
73 env: PYTHON2=/usr/local/bin/python2 CXXFLAGS=-Wno-error=reserved-user-defined-literal confargs=--prefix=/Users/travis/XapianInstall installcore='make -C xapian-core install'
75 # (Ab)use env to label this build:
76 env: dummy="Automated run of xapian-check-patch"
77 # Override before_script to do nothing
79 # Override script to diff from against the branch point from:
80 # * for a PR, the branch the PR targets
83 - git diff `[ "$TRAVIS_PULL_REQUEST" = false ] && echo master || echo "$TRAVIS_BRANCH"`...|xapian-maintainer-tools/xapian-check-patch
87 # Bootstrap everything, then configure using our chosen compiler.
89 - ./configure $confargs CC="$USE_CC" CXX="$USE_CXX"
93 - make check VERBOSE=1 AUTOMATED_TESTING=1
94 # grep '^' passes through all input while giving a non-zero exit status if
95 # that input is empty.
96 - git status --porcelain|grep '^' && { echo "The generated files listed above are not in .gitignore" ; exit 1; }; true