mirror of
https://github.com/vale981/ray
synced 2025-03-08 19:41:38 -05:00

* initial redis module * temp commit * temp commit * temp commit * Empty object table functions and broken object_table_lookup * fix segfault and clean up code * cleanup and tests * try to ignore redismodule.h * check if data_size is integer * Minor changes to redis-module tests. * try to exclude redismodule from clang-format * try something different * fix clang-format and tests * sleep a bit * Result table * fix redis_module tests * fix tests and add tests for result table * more tests * randomize ports * Minor changes. * More fixes.
19 lines
728 B
Bash
Executable file
19 lines
728 B
Bash
Executable file
#!/bin/bash
|
|
set -e -x
|
|
if [ "$TRAVIS_PULL_REQUEST" == "false" ] ; then
|
|
# Not in a pull request, so compare against parent commit
|
|
base_commit="HEAD^"
|
|
echo "Running clang-format against parent commit $(git rev-parse $base_commit)"
|
|
else
|
|
base_commit="$TRAVIS_BRANCH"
|
|
echo "Running clang-format against branch $base_commit, with hash $(git rev-parse $base_commit)"
|
|
fi
|
|
output="$(.travis/git-clang-format --binary clang-format-3.8 --commit $base_commit --diff --exclude '(.*thirdparty/|.*redismodule.h)')"
|
|
if [ "$output" == "no modified files to format" ] || [ "$output" == "clang-format did not modify any files" ] ; then
|
|
echo "clang-format passed."
|
|
exit 0
|
|
else
|
|
echo "clang-format failed:"
|
|
echo "$output"
|
|
exit 1
|
|
fi
|