From 3bc7b0bf5d072479413471211d85ed3e5b51bab8 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 12 Mar 2021 15:54:17 +0100 Subject: Add small script to run coverity --- .gitignore | 4 +++- runcoverity.sh | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 runcoverity.sh diff --git a/.gitignore b/.gitignore index 7c27929e..2f0181bd 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,6 @@ main/.externalNativeBuild main/.cxx .synopsys polaris.yml -.polaris-coverity.zip +.coverity +idir + diff --git a/runcoverity.sh b/runcoverity.sh new file mode 100755 index 00000000..3d1f957b --- /dev/null +++ b/runcoverity.sh @@ -0,0 +1,14 @@ +#!/bin/bash -xe +export PATH=$PATH:/Applications/cov-analysis-macosx-2020.09/bin + +if [ -n ${COVERITY_CONNECT_HOST} ]; then + echo COVERITY_CONNECT_HOST not set + exit 1 +fi + +./gradlew -b build.gradle.kts --no-daemon clean +cov-build --dir .coverity/idir --config .coverity/cfg.xml ./gradlew -b build.gradle.kts --no-daemon assembleUiRelease + +cov-analyze --dir .coverity/idir --all --strip-path ${PWD}/main/src/main/cpp --strip-path ${PWD}/main/src --strip-path ${PWD} --strip-path /Users/arne/oss/android-sdk-macosx/ndk/21.1.6352462/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/ + +cov-commit-defects --dir .coverity/idir --ssl -host ${COVERITY_CONNECT_HOST} --stream icsopenvpn-styx-master --auth-key-file ~/.coverity/auth-key.txt -- cgit v1.2.3