git subrepo clone (merge) --branch=v3.6.1 https://github.com/nats-io/nats.c.git deps/nats.c

subrepo:
  subdir:   "deps/nats.c"
  merged:   "66cec7f"
upstream:
  origin:   "https://github.com/nats-io/nats.c.git"
  branch:   "v3.6.1"
  commit:   "66cec7f"
git-subrepo:
  version:  "0.4.6"
  commit:   "b8b46501e"
This commit is contained in:
2023-08-15 00:19:51 -07:00
parent 5bc936a09f
commit 79a45fd2e3
558 changed files with 151795 additions and 0 deletions

44
deps/nats.c/buildOnTravis.sh vendored Executable file
View File

@@ -0,0 +1,44 @@
#!/bin/sh
# $1 is compiler (gcc, clang)
# $2 is "coverage" for coverage
# $3 is build options to pass to cmake
# $4 is test options to pass to ctest
echo "compiler = " $1
echo "coverage = " $2
echo "build opts = " $3
echo "test opts = " $4
if [ "$1" != "gcc" ]; then
if [ "$2" = "coverage" ]; then
# only coverage for gcc compiler
exit 0
fi
fi
cmake .. $3
res=$?
if [ $res -ne 0 ]; then
exit $res
fi
make rebuild_cache && make
res=$?
if [ $res -ne 0 ]; then
exit $res
fi
echo "Test app using dynamic library does not crash if no NATS call is made"
test/dylib/nonats
res=$?
if [ $res -ne 0 ]; then
exit $res
fi
export NATS_TEST_SERVER_VERSION="$(nats-server -v)"
export NATS_TEST_TRAVIS=yes
ctest --timeout 60 --output-on-failure $4
res=$?
if [ $res -ne 0 ]; then
exit $res
fi