Skip to content

Commit

Permalink
travis: Scan patch codestyle
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ktrzcinx authored and lgirdwood committed Sep 24, 2020
1 parent e29baaa commit fccf521
Show file tree
Hide file tree
Showing 4 changed files with 8,106 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/.../..})
Loading

0 comments on commit fccf521

Please sign in to comment.