Travis: Automatically check for clang-format errors
This commit is contained in:
parent
df4c9b729d
commit
3843561a7e
Notes:
sideshowbarker
2024-07-19 02:14:17 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/3843561a7e5 Pull-request: https://github.com/SerenityOS/serenity/pull/3541 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/linusg
1 changed files with 4 additions and 3 deletions
|
@ -26,7 +26,7 @@ before_install:
|
|||
# These packages are already part of the Travis image:
|
||||
#- sudo apt-get install -y g++-9 libstdc++-9-dev cmake shellcheck
|
||||
# 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:
|
||||
#- e2fsprogs qemu-system-i386 qemu-utils
|
||||
- g++ --version
|
||||
|
@ -35,10 +35,11 @@ before_install:
|
|||
|
||||
script:
|
||||
- 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-ipc-ids.sh
|
||||
- Meta/check-style.sh
|
||||
- Meta/lint-shell-scripts.sh
|
||||
- cd Toolchain
|
||||
- TRY_USE_LOCAL_TOOLCHAIN=y ./BuildIt.sh
|
||||
- cd "$SERENITY_ROOT"
|
||||
|
|
Loading…
Add table
Reference in a new issue