aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2018-04-18 13:11:08 -0700
committerGitHub <noreply@github.com>2018-04-18 13:11:08 -0700
commit69a426038d5366517d88ae88ecacfcc9472efef2 (patch)
tree5b444d0bf2d49b0ebac43298721b6ab0fc320cf8 /.travis.yml
parenta9cf934c890d416b87bfbbd7bf2ac796535f19f4 (diff)
downloadriscv-openocd-69a426038d5366517d88ae88ecacfcc9472efef2.zip
riscv-openocd-69a426038d5366517d88ae88ecacfcc9472efef2.tar.gz
riscv-openocd-69a426038d5366517d88ae88ecacfcc9472efef2.tar.bz2
Enforce OpenOCD style guide. (#239)
* Enforce OpenOCD style guide. Change-Id: I579a9f54ed22a774bf52f6aa5bc13bcbd2e82cd8 * Fail if `git diff` fails Change-Id: I57256b0a24247f6123cb0e25a89c1b59867cb3f9 * Maybe every line gets its own shell? Change-Id: I1a6f83e9f3d7cfd39f8933f0dba13c3cf76f71f6 * Maybe this will error properly. Change-Id: I50803cfc229e61158569fb6b609195f7191ecac9 * Take different approach than merge-base Change-Id: I345cbc4eecc4755c7127e8e36e403f7b727010b1 * Fix style issues. Change-Id: I90e71f710858524812d0ab160b25c486b7b099e7
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 37a5993..2aeed08 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -50,5 +50,11 @@ matrix:
- binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686
script:
+ # Ideally we'd diff back to where we either branched off OpenOCD or master,
+ # or riscv. But that's tricky, and the default git clone only gets the last
+ # 50 changes any case. Most merges won't consist of more than 40 changes,
+ # so this should work fine most of the time, and be a lot better than not
+ # checking at all.
+ - git diff HEAD~40 | ./tools/scripts/checkpatch.pl --no-signoff -
- ./bootstrap && ./configure --enable-remote-bitbang --enable-jtag_vpi $CONFIGURE_ARGS && make
- file src/$EXECUTABLE