0
0
mirror of https://github.com/schwabe/ics-openvpn.git synced 2024-09-19 19:42:29 +02:00
openvpn-android/runcoverity.sh
2023-10-12 11:58:06 +02:00

21 lines
1.0 KiB
Bash
Executable File

#!/bin/bash -xe
export PATH=$PATH:/Applications/cov-analysis-macosx-2021.03/bin
if [ -z "${COVERITY_CONNECT_HOST}" ]; then
echo COVERITY_CONNECT_HOST not set
exit 1
fi
cov-configure --config .coverity/cfg.xml --clang
cov-configure --config .coverity/cfg.xml --android
cov-configure --config .coverity/cfg.xml --kotlin
cov-configure --config .coverity/cfg.xml --java
./gradlew -b build.gradle.kts --no-daemon clean
cov-build --dir .coverity/idir --config .coverity/cfg.xml ./gradlew -b build.gradle.kts --no-daemon assembleUiOvpn23Release
NDK_VER=${NDK_VER:-26.1.10909125}
cov-analyze --dir .coverity/idir --all --strip-path ${PWD}/main/src/main/cpp --strip-path ${PWD}/main/src --strip-path ${PWD} --strip-path ${ANDROID_HOME}/ndk/${NDK_VER}/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/ --strip-path ${ANDROID_HOME}/ndk/${NDK_VER}/toolchains/llvm/prebuilt/linux-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