Skip to content

Commit fccf521

Browse files
ktrzcinxlgirdwood
authored andcommitted
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 <[email protected]>
1 parent e29baaa commit fccf521

File tree

4 files changed

+8106
-0
lines changed

4 files changed

+8106
-0
lines changed

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@ jobs:
1313
script:
1414
- 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
1515
- docker run -i -t -v $(pwd):/home/sof/work/sof.git --user $(id -u) sof ./build.sh
16+
- name: checkpatch
17+
before_install:
18+
- sudo apt-get -y install codespell
19+
script:
20+
- git --no-pager log --oneline --graph --decorate --max-count=5
21+
- git --no-pager log --oneline --graph --decorate --max-count=5 "${TRAVIS_BRANCH}"
22+
- (set -x; scripts/checkpatch.pl --no-tree --strict --codespell --no-signoff -g ${TRAVIS_COMMIT_RANGE/.../..})

0 commit comments

Comments
 (0)