Skip to content

Commit 1c35bbc

Browse files
xiulipanplbossart
authored andcommitted
[DEBUG][CI]travis: modify check patch script
The checkpatch script seems to be broken with the Travis CI ENV variable. Use some git parse to generate the commit. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
1 parent 165b34d commit 1c35bbc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ jobs:
1212
include:
1313
- if: type = pull_request
1414
name: checkpatch
15-
script: scripts/checkpatch.pl --strict --codespell -g $TRAVIS_COMMIT_RANGE
15+
script:
16+
- SHA_PR=`git log --oneline -1 | sed -rn "s/.*Merge (.*) into.*/\1/p"`
17+
- SHA_MAIN=`git log --oneline -1 | sed -rn "s/.*Merge .* into (.*)/\1/p"`
18+
- scripts/checkpatch.pl --strict --codespell -g $SHA_MAIN..$SHA_PR
1619
- name: "BUILD SOF Kernel x86_64"
1720
script:
1821
- export ARCH=x86_64

0 commit comments

Comments
 (0)