2019-10-09 21:29:42 +08:00
|
|
|
COVLOGIN=myemail@corp.com
|
|
|
|
COVTOKEN=aAbBcCdDeEfFgGhHiIjJkK
|
2019-10-09 22:40:08 +08:00
|
|
|
# Toolchain available at https://scan.coverity.com/download
|
2021-05-14 07:33:37 +08:00
|
|
|
COVBINDIR="/opt/cov-analysis-linux64-2020.09/bin"
|
2019-10-09 21:29:42 +08:00
|
|
|
# Nickname included in scan description:
|
|
|
|
NICKNAME=myself
|
2021-05-14 07:33:37 +08:00
|
|
|
HOSTCC=gcc-10
|
|
|
|
HOSTCXX=g++-10
|
|
|
|
HOSTLD=g++-10
|
2019-10-09 21:29:42 +08:00
|
|
|
|
2019-10-10 20:52:51 +08:00
|
|
|
# Do not change it:
|
2019-10-09 21:29:42 +08:00
|
|
|
COVDIR=cov-int
|
|
|
|
|
|
|
|
# Depending if your kernel > 4.8.x, you might need to activate this to run Coverity executables
|
|
|
|
# (but latest tools with kernel 5.2 run fine)
|
|
|
|
#sysctl vsyscall=emulate
|
|
|
|
|
|
|
|
export PATH="$PATH:$COVBINDIR"
|
|
|
|
|
|
|
|
function pre_build_hook() {
|
|
|
|
# tmp dir will be /tmp/cov-$username/
|
|
|
|
# It's the good place if you need to redirect to elsewhere with a symlink
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
function post_build_hook() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
function pre_submit_hook() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
function post_submit_hook() {
|
|
|
|
# Clean up build folders?
|
|
|
|
rm -rf "$COVDIR"
|
|
|
|
echo "Coverity build cleaned"
|
|
|
|
return 0
|
|
|
|
}
|