aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorIgor Opaniuk <igor.opaniuk@linaro.org>2016-11-03 13:27:28 +0200
committerIgor Opaniuk <igor.opaniuk@linaro.org>2016-11-04 11:47:43 +0200
commit1c93c2b5e2da6651371462e0ec7441e070d757bf (patch)
tree46e1d9a74088e2637b42dc85ac4080e370a6df0f /.travis.yml
parent01422c42ac41c322ee6d7da67cc95492cc5ce177 (diff)
scripts: add wrapper script for checkpatch
Add auxilary wrapper for convenient check of commit/ changes in staging area/multiple commits with checkpatch.pl Put common functions for .travis.yml and checkpatch.sh into a separate file Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml9
1 files changed, 2 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index a0be5884..123cdebc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -87,13 +87,8 @@ before_script:
- git fetch https://github.com/OP-TEE/optee_os --tags
- unset CC
- # checkpatch.pl will ignore the following paths
- - CHECKPATCH_IGNORE=$(echo core/lib/lib{fdt,tomcrypt} lib/lib{png,utils,zlib})
- - _CP_EXCL=$(for p in $CHECKPATCH_IGNORE; do echo ":(exclude)$p" ; done)
- - function _checkpatch() { $DST_KERNEL/scripts/checkpatch.pl --quiet --ignore FILE_PATH_CHANGES --ignore GERRIT_CHANGE_ID --no-tree -; }
- - function checkpatch() { printf "Checking commit:\n "; $HOME/git-2.9.3/git show --oneline --no-patch $1; $HOME/git-2.9.3/git format-patch -1 $1 --stdout -- . $_CP_EXCL | _checkpatch; }
- - function checkdiff() { echo "Checking squashed commits (diff $1...$2)"; $HOME/git-2.9.3/git diff $1...$2 -- . $_CP_EXCL | _checkpatch; }
-
+ - export PATH=$HOME/git-2.9.3/:$DST_KERNEL/scripts/:$PATH
+ - source ${HOME}/optee_repo/optee_os/scripts/checkpatch_inc.sh
# Several compilation options are checked
script:
# Run checkpatch.pl on: