16 compiler: clang # Workaround travis setting CC=["clang", "gcc"]
17 env: BUILD_ARCH="x86_64"
18 # Build using the 10.12 SDK but target and run on OSX 10.11
22 # env: SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk MACOSX_DEPLOYMENT_TARGET=10.11
23 # Build on the latest OSX version (will eventually become obsolete)
27 env: BUILD_ARCH="x86_64"
34 env: BUILD_ARCH="x86" # Only do the gcc x86 build to reduce clutter
36 - EXTRA_CFLAGS="-Werror"
37 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
38 pkgs=(libaio-dev libnuma-dev libz-dev librbd-dev libibverbs-dev librdmacm-dev);
39 if [[ "$BUILD_ARCH" == "x86" ]]; then
40 pkgs=("${pkgs[@]/%/:i386}");
42 EXTRA_CFLAGS="${EXTRA_CFLAGS} -m32";
44 pkgs+=(glusterfs-common);
46 sudo apt-get -qq update;
47 sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}";
50 - ./configure --extra-cflags="${EXTRA_CFLAGS}" && make