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"
31 env: BUILD_ARCH="x86_64"
38 env: BUILD_ARCH="x86" # Only do the gcc x86 build to reduce clutter
40 - EXTRA_CFLAGS="-Werror"
41 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
42 pkgs=(libaio-dev libnuma-dev libz-dev librbd-dev libibverbs-dev librdmacm-dev);
43 if [[ "$BUILD_ARCH" == "x86" ]]; then
44 pkgs=("${pkgs[@]/%/:i386}");
46 EXTRA_CFLAGS="${EXTRA_CFLAGS} -m32";
48 pkgs+=(glusterfs-common);
50 sudo apt-get -qq update;
51 sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}";
54 - ./configure --extra-cflags="${EXTRA_CFLAGS}" && make