mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 07:37:21 +02:00

Only code formatting implemented at the moment. Travis is currently Ubuntu 14.04, which is missing multiple library versions needed. Bootstrapping in Python 3.5, Meson and Ninja is possible, but can take a while, but also bootstrapping in libsystemd is one step too many for now as it takes a significant amount of time.
15 lines
418 B
Bash
Executable File
15 lines
418 B
Bash
Executable File
#!/bin/bash
|
|
# Simple script to check for clang-format compliance
|
|
wget https://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/git-clang-format
|
|
chmod +x git-clang-format
|
|
|
|
CLANG_FORMAT_OUTPUT=$(./git-clang-format --diff)
|
|
if [[ ! $CLANG_FORMAT_OUTPUT == "no modified files to format" ]]; then
|
|
echo "Failed clang format check:"
|
|
echo "${CLANG_FORMAT_OUTPUT}"
|
|
exit 1
|
|
else
|
|
echo "Passed clang format check"
|
|
fi
|
|
|