2022-08-30 10:15:32 -05:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2020-01-09 19:06:45 -06:00
|
|
|
# Copyright Marek Vasut <marex@denx.de>
|
|
|
|
|
|
|
|
# OpenOCD on Travis CI - https://travis-ci.org/
|
|
|
|
|
|
|
|
sudo: required
|
|
|
|
dist: bionic
|
|
|
|
|
|
|
|
arch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
- ppc64le
|
|
|
|
- s390x
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: 'ppa:ubuntu-toolchain-r/test'
|
|
|
|
- sourceline: 'deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
|
|
|
|
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
|
|
|
|
packages:
|
|
|
|
- libftdi-dev
|
|
|
|
- libhidapi-dev
|
|
|
|
- libjaylink-dev
|
|
|
|
|
|
|
|
env:
|
|
|
|
- CC=gcc-9
|
|
|
|
- CC=clang-9
|
|
|
|
|
2017-07-05 12:33:42 -05:00
|
|
|
language: c
|
|
|
|
dist: trusty
|
|
|
|
|
2017-07-06 16:53:14 -05:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
2017-12-13 16:23:05 -06:00
|
|
|
env:
|
|
|
|
- BUILD=x86_64-linux-gnu
|
|
|
|
- EXECUTABLE=openocd
|
2018-11-05 13:50:09 -06:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- patchutils
|
2017-09-18 16:05:32 -05:00
|
|
|
compiler: gcc
|
2017-07-06 16:53:14 -05:00
|
|
|
|
|
|
|
- os: linux
|
2017-12-13 16:23:05 -06:00
|
|
|
env:
|
|
|
|
- BUILD=i686-linux-gnu
|
|
|
|
- CFLAGS=-m32
|
|
|
|
- EXECUTABLE=openocd
|
2017-07-06 16:53:14 -05:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2018-11-05 13:50:09 -06:00
|
|
|
- gcc-multilib patchutils
|
2017-09-18 16:05:32 -05:00
|
|
|
compiler: gcc
|
|
|
|
|
|
|
|
- os: linux
|
2017-12-13 16:23:05 -06:00
|
|
|
env:
|
|
|
|
- BUILD=x86_64-linux-gnu
|
|
|
|
- EXECUTABLE=openocd
|
2018-11-05 13:50:09 -06:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- patchutils
|
2017-09-18 16:05:32 -05:00
|
|
|
compiler: clang
|
|
|
|
|
|
|
|
- os: linux
|
2017-12-13 16:23:05 -06:00
|
|
|
env:
|
2017-12-22 16:35:38 -06:00
|
|
|
- BUILD=i686-linux-gnu
|
2017-12-13 16:23:05 -06:00
|
|
|
- CFLAGS=-m32
|
2018-02-19 16:25:48 -06:00
|
|
|
- CONFIGURE_ARGS="--disable-target64"
|
2017-12-13 16:23:05 -06:00
|
|
|
- EXECUTABLE=openocd
|
2017-09-18 16:05:32 -05:00
|
|
|
compiler: clang
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2018-11-05 13:50:09 -06:00
|
|
|
- gcc-multilib patchutils
|
2017-07-06 16:53:14 -05:00
|
|
|
|
2017-12-13 16:23:05 -06:00
|
|
|
- os: linux
|
2017-12-22 16:35:38 -06:00
|
|
|
env:
|
2017-12-13 16:23:05 -06:00
|
|
|
- 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:
|
2018-11-05 13:50:09 -06:00
|
|
|
- binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686 patchutils
|
2017-12-13 16:23:05 -06:00
|
|
|
|
2017-07-05 12:33:42 -05:00
|
|
|
script:
|
2020-08-31 15:20:46 -05:00
|
|
|
# This is here for the signoff check.
|
2020-08-31 16:15:58 -05:00
|
|
|
# Disabled because when travis does the integration build the last change
|
|
|
|
# is an automated change, which won't have the Signed-off-by line.
|
|
|
|
#- ./tools/checkpatch.sh
|
|
|
|
|
2018-04-18 15:11:08 -05:00
|
|
|
# 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.
|
2018-08-30 17:29:00 -05:00
|
|
|
- git diff -U20 HEAD~40 |
|
2021-03-05 17:52:33 -06:00
|
|
|
filterdiff -x "a/src/jtag/drivers/libjaylink/*" -x "a/tools/git2cl/*"
|
|
|
|
-x "b/src/gnulib/*" |
|
2018-08-30 17:29:00 -05:00
|
|
|
./tools/scripts/checkpatch.pl --no-signoff -
|
2017-12-13 16:23:05 -06:00
|
|
|
- ./bootstrap && ./configure --enable-remote-bitbang --enable-jtag_vpi $CONFIGURE_ARGS && make
|
|
|
|
- file src/$EXECUTABLE
|