Skip to content

Commit 5718609

Browse files
authored
Merge pull request #127 from etr/travis_independent_commands
Travis independent commands
2 parents 3065dea + e671ba3 commit 5718609

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.travis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,12 @@ script:
8282
qemu-arm -L /usr/arm-linux-gnueabi/ ./.libs/http_utils ;
8383
qemu-arm -L /usr/arm-linux-gnueabi/ ./.libs/threaded ;
8484
fi
85-
else
86-
make check ;
87-
cat test/test-suite.log ;
88-
ls -l /usr/local/lib/ ;
89-
ls -l /usr/lib/ ;
90-
if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd ../src/; cppcheck --error-exitcode=1 .; cd ../build; fi
9185
fi
86+
- make check
87+
- cat test/test-suite.log
88+
- ls -l /usr/local/lib/
89+
- ls -l /usr/lib/
90+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd ../src/; cppcheck --error-exitcode=1 .; cd ../build; fi
9291
after_success:
9392
- if [ "$DEBUG" = "debug" ] && [ "$COVERAGE" = "coverage" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then bash <(curl -s https://codecov.io/bash); fi
9493
matrix:

configure.ac

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,13 @@ else
258258
AM_CFLAGS="$AM_CXXFLAGS -O3"
259259
fi
260260

261+
case $host_os in
262+
darwin* )
263+
AM_CXXFLAGS="$AM_CXXFLAGS -DDARWIN"
264+
AM_CFLAGS="$AM_CFLAGS -DDARWIN"
265+
;;
266+
esac
267+
261268
AC_MSG_CHECKING([whether to build with coverage information])
262269
AC_ARG_ENABLE([coverage],
263270
[AS_HELP_STRING([--enable-coverage],

test/integ/ws_start_stop.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ LT_BEGIN_AUTO_TEST(ws_start_stop_suite, enable_options)
241241
LT_END_AUTO_TEST(enable_options)
242242

243243
LT_BEGIN_AUTO_TEST(ws_start_stop_suite, custom_socket)
244+
#ifndef DARWIN
244245
int fd = socket(AF_INET, SOCK_STREAM, 0);
245246

246247
struct sockaddr_in address;
@@ -269,6 +270,7 @@ LT_BEGIN_AUTO_TEST(ws_start_stop_suite, custom_socket)
269270
curl_easy_cleanup(curl);
270271

271272
ws.stop();
273+
#endif
272274
LT_END_AUTO_TEST(custom_socket)
273275

274276
LT_BEGIN_AUTO_TEST(ws_start_stop_suite, single_resource)

0 commit comments

Comments
 (0)