Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
executable file 25 lines (21 sloc) 560 Bytes
#!/bin/bash
if [ "$CI" = "true" ] && [ "$TRAVIS_OS_NAME" = "osx" ]; then
echo "Skipping style check on OSX due to being unreliable.";
exit 0;
fi
if [ "$CI" = "true" ] && [ "$CLANGFORMAT" = "clang-format-3.9" ]; then
echo "Skipping style check when using clang-format-3.9.";
exit 0;
fi
make check-style
if [[ $(git status -s) ]];
then
git --no-pager diff
tput setaf 1;
echo "Code does not adhere to the project standards. Run \"make check-style\".";
exit 1;
else
tput setaf 2;
echo "Code adheres to the project standards.";
exit 0;
fi;
You can’t perform that action at this time.