69a426038d
* 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
61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
language: c
|
|
dist: trusty
|
|
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
env:
|
|
- BUILD=x86_64-linux-gnu
|
|
- EXECUTABLE=openocd
|
|
compiler: gcc
|
|
|
|
- os: linux
|
|
env:
|
|
- BUILD=i686-linux-gnu
|
|
- CFLAGS=-m32
|
|
- EXECUTABLE=openocd
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- gcc-multilib
|
|
compiler: gcc
|
|
|
|
- os: linux
|
|
env:
|
|
- BUILD=x86_64-linux-gnu
|
|
- EXECUTABLE=openocd
|
|
compiler: clang
|
|
|
|
- os: linux
|
|
env:
|
|
- BUILD=i686-linux-gnu
|
|
- CFLAGS=-m32
|
|
- CONFIGURE_ARGS="--disable-target64"
|
|
- EXECUTABLE=openocd
|
|
compiler: clang
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- gcc-multilib
|
|
|
|
- os: linux
|
|
env:
|
|
- BUILD=i686-w64-mingw
|
|
- CONFIGURE_ARGS="--build=i686-unknown-linux-gnu --host=i686-w64-mingw32"
|
|
- EXECUTABLE=openocd.exe
|
|
compiler: i686-w64-mingw32-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- 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
|