summaryrefslogtreecommitdiff
path: root/.travis/build.sh
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2014-09-19 13:09:24 -0700
committerBen Pfaff <blp@nicira.com>2014-09-19 13:57:33 -0700
commit95c9bfd45cbcbfbba8c004a3227656e46fe3d872 (patch)
tree536258b62f25451bd919df944968ffbab1036cb3 /.travis/build.sh
parentaeef71935fa74f3e9096dcc5e2154475f1bbc81f (diff)
downloadopenvswitch-95c9bfd45cbcbfbba8c004a3227656e46fe3d872.tar.gz
travis: Allow testsuite to run with GCC or Clang.
I don't see why the testsuite is supported only with GCC. Acked-by: Thomas Graf <tgraf@noironetworks.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to '.travis/build.sh')
-rwxr-xr-x.travis/build.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/.travis/build.sh b/.travis/build.sh
index db7a3d359..ecdd39fd5 100755
--- a/.travis/build.sh
+++ b/.travis/build.sh
@@ -52,12 +52,13 @@ if [ $CC = "clang" ]; then
make CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument"
else
make CFLAGS="$CFLAGS" C=1
- if [ $TESTSUITE ]; then
- if ! make distcheck; then
- # testsuite.log is necessary for debugging.
- cat */_build/tests/testsuite.log
- exit 1
- fi
+fi
+
+if [ $TESTSUITE ]; then
+ if ! make distcheck; then
+ # testsuite.log is necessary for debugging.
+ cat */_build/tests/testsuite.log
+ exit 1
fi
fi