ovsdb: Add ovsdb-client options for testing lock
[cascardo/ovs.git] / .travis / osx-build.sh
1 #!/bin/bash
2
3 set -o errexit
4
5 CFLAGS="-Werror -Wno-error=format $CFLAGS"
6 EXTRA_OPTS=""
7
8 function configure_ovs()
9 {
10     ./boot.sh && ./configure $*
11 }
12
13 configure_ovs $EXTRA_OPTS $*
14
15 if [ "$CC" = "clang" ]; then
16     make CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument"
17 else
18     make CFLAGS="$CFLAGS $BUILD_ENV"
19 fi
20 if [ "$TESTSUITE" ] && [ "$CC" != "clang" ]; then
21     if ! make distcheck RECHECK=yes; then
22         # testsuite.log is necessary for debugging.
23         cat */_build/tests/testsuite.log
24         exit 1
25     fi
26 fi
27
28 exit 0