travis: Scan patch codestyle

Checkpatch is a tool which checks patch code style
alignment with Linux kernel code.
By the way print short graphs of used commits, to
show whats under test.
Checkpatch call is precede by `set -x`, to show used
arguments values, especially checked commits range.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This commit is contained in:
Karol Trzcinski 2020-09-22 10:49:43 +02:00 committed by Liam Girdwood
parent e29baaa8b9
commit fccf521331
4 changed files with 8106 additions and 0 deletions

View File

@ -13,3 +13,10 @@ jobs:
script:
- echo -e '#!/bin/bash\nmkdir build && cd build && cmake .. && make -Werror -Wall -Wmissing-prototypes -Wimplicit-fallthrough=3 -Wpointer-arith' > build.sh && chmod +x build.sh
- docker run -i -t -v $(pwd):/home/sof/work/sof.git --user $(id -u) sof ./build.sh
- name: checkpatch
before_install:
- sudo apt-get -y install codespell
script:
- git --no-pager log --oneline --graph --decorate --max-count=5
- git --no-pager log --oneline --graph --decorate --max-count=5 "${TRAVIS_BRANCH}"
- (set -x; scripts/checkpatch.pl --no-tree --strict --codespell --no-signoff -g ${TRAVIS_COMMIT_RANGE/.../..})

6845
scripts/checkpatch.pl Executable file

File diff suppressed because it is too large Load Diff

View File

1254
scripts/spelling.txt Normal file

File diff suppressed because it is too large Load Diff