diff options
| author | Egor <egor.yusov@gmail.com> | 2019-11-28 05:13:43 +0000 |
|---|---|---|
| committer | Egor <egor.yusov@gmail.com> | 2019-11-28 05:13:43 +0000 |
| commit | 3f0a361ab5de31b41fd06bcc1c727d25df9f571c (patch) | |
| tree | bee9db52cd264d53a19a59f3c76aed5c3b71473a /BuildTools | |
| parent | Updated info message from format validation script (diff) | |
| download | DiligentCore-3f0a361ab5de31b41fd06bcc1c727d25df9f571c.tar.gz DiligentCore-3f0a361ab5de31b41fd06bcc1c727d25df9f571c.zip | |
Added format validation script stub on Mac
Diffstat (limited to 'BuildTools')
| -rwxr-xr-x | BuildTools/FormatValidation/validate_format_mac.sh | 8 | ||||
| -rwxr-xr-x | BuildTools/Scripts/travis/validate_format.sh | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/BuildTools/FormatValidation/validate_format_mac.sh b/BuildTools/FormatValidation/validate_format_mac.sh new file mode 100755 index 00000000..754d8fd1 --- /dev/null +++ b/BuildTools/FormatValidation/validate_format_mac.sh @@ -0,0 +1,8 @@ +#!/bin/bash +#python clang-format-validate.py -r \ +# --exclude ../../Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions.h \ +# --exclude ../../Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions_inc.h \ +# --exclude ../../Graphics/GraphicsEngineVulkan/shaders/* \ +# ../../Common ../../Graphics ../../Platforms ../../Primitives +echo "Format validation is not yet enabled for DiligentCore module on MacOS" + diff --git a/BuildTools/Scripts/travis/validate_format.sh b/BuildTools/Scripts/travis/validate_format.sh new file mode 100755 index 00000000..39f40554 --- /dev/null +++ b/BuildTools/Scripts/travis/validate_format.sh @@ -0,0 +1,10 @@ +# The script must be run from FormatValidatio folder + +if [ "$TRAVIS_OS_NAME" = "osx" ]; then + . ./validate_format_mac.sh +fi + +if [ "$TRAVIS_OS_NAME" = "linux" ]; then + . ./validate_format_linux.sh +fi + |
