From 8a640a2cfa3cfff3c52e55e237cf402a73d3ce4b Mon Sep 17 00:00:00 2001 From: Piotr Szkotak Date: Wed, 17 Jul 2019 17:48:04 +0200 Subject: [PATCH] [travis] extend ncp transport coverage (#4000) This commit makes the travis run scan-build twice, for the UART and the SPI NCP configurations respectively. --- .travis/script.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.travis/script.sh b/.travis/script.sh index 5840c2e42..28c3cf71d 100755 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -54,6 +54,7 @@ python --version || die export CPPFLAGS="${CPPFLAGS} -I${TRAVIS_BUILD_DIR}/third_party/mbedtls/repo/include" export CPPFLAGS="${CPPFLAGS} -DMBEDTLS_CONFIG_FILE=\\\"mbedtls-config.h\\\"" + # UART transport scan-build ./configure \ --enable-application-coap \ --enable-application-coap-secure \ @@ -89,6 +90,43 @@ python --version || die --with-examples=posix || die scan-build --status-bugs -analyze-headers -v make -j2 || die + + # SPI transport + scan-build ./configure \ + --enable-application-coap \ + --enable-application-coap-secure \ + --enable-border-agent \ + --enable-border-router \ + --enable-builtin-mbedtls=no \ + --enable-cert-log \ + --enable-channel-manager \ + --enable-channel-monitor \ + --enable-child-supervision \ + --enable-cli \ + --enable-commissioner \ + --enable-dhcp6-client \ + --enable-dhcp6-server \ + --enable-diag \ + --enable-dns-client \ + --enable-ecdsa \ + --enable-executable=no \ + --enable-ftd \ + --enable-jam-detection \ + --enable-joiner \ + --enable-legacy \ + --enable-mac-filter \ + --enable-mtd \ + --enable-mtd-network-diagnostic \ + --enable-ncp \ + --with-ncp-bus=spi \ + --enable-radio-only \ + --enable-raw-link-api \ + --enable-service \ + --enable-sntp-client \ + --enable-udp-forward \ + --with-examples=posix || die + + scan-build --status-bugs -analyze-headers -v make -j2 || die } [ $BUILD_TARGET != android-build ] || {