mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-17 17:47:12 +00:00
* Updated to latest aws-crt-ffi, updated EventLoopGroup/options init * Removed test-ci target, just use test for everything now * Added event_loop_group API to CRT/stubs * Removed headers (all generated) from format-check * Added the ability to force extension vs FFI * make test will now trigger composer run test/phpunit, and force tests with both FFI and extension * Updated builder version, removed redundant php7 test run * Removed type annotations that anger php5, limited backends on php5
25 lines
471 B
Bash
Executable File
25 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ -z $CLANG_FORMAT ]] ; then
|
|
CLANG_FORMAT=clang-format
|
|
fi
|
|
|
|
if NOT type $CLANG_FORMAT 2> /dev/null ; then
|
|
echo "No appropriate clang-format found."
|
|
exit 1
|
|
fi
|
|
|
|
FAIL=0
|
|
SOURCE_FILES=`find src ext -type f \( -name '*.c' \)`
|
|
for i in $SOURCE_FILES
|
|
do
|
|
$CLANG_FORMAT -output-replacements-xml $i | grep -c "<replacement " > /dev/null
|
|
if [ $? -ne 1 ]
|
|
then
|
|
echo "$i failed clang-format check."
|
|
FAIL=1
|
|
fi
|
|
done
|
|
|
|
exit $FAIL
|