1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:57:35 +00:00

Travis: Automatically check for clang-format errors

This commit is contained in:
Ben Wiederhake 2020-09-17 22:50:42 +02:00 committed by Andreas Kling
parent df4c9b729d
commit 3843561a7e

View file

@ -26,7 +26,7 @@ before_install:
# These packages are already part of the Travis image: # These packages are already part of the Travis image:
#- sudo apt-get install -y g++-9 libstdc++-9-dev cmake shellcheck #- sudo apt-get install -y g++-9 libstdc++-9-dev cmake shellcheck
# These aren't: # These aren't:
- sudo apt-get install -y libmpfr-dev libmpc-dev libgmp-dev - sudo apt-get install -y libmpfr-dev libmpc-dev libgmp-dev clang-format-10
# If we ever do any qemu-emulation on Travis, we should re-enable this: # If we ever do any qemu-emulation on Travis, we should re-enable this:
#- e2fsprogs qemu-system-i386 qemu-utils #- e2fsprogs qemu-system-i386 qemu-utils
- g++ --version - g++ --version
@ -35,10 +35,11 @@ before_install:
script: script:
- export SERENITY_ROOT="$(pwd)" - export SERENITY_ROOT="$(pwd)"
- Meta/lint-shell-scripts.sh - Meta/check-style.sh
- Meta/lint-clang-format.sh --overwrite-inplace && git diff --exit-code
- Meta/lint-executable-resources.sh - Meta/lint-executable-resources.sh
- Meta/lint-ipc-ids.sh - Meta/lint-ipc-ids.sh
- Meta/check-style.sh - Meta/lint-shell-scripts.sh
- cd Toolchain - cd Toolchain
- TRY_USE_LOCAL_TOOLCHAIN=y ./BuildIt.sh - TRY_USE_LOCAL_TOOLCHAIN=y ./BuildIt.sh
- cd "$SERENITY_ROOT" - cd "$SERENITY_ROOT"