talkatu/builders

34ab3a229c27
Parents ec2845771981
Children 291ade1a05aa
allow users to override pvs-studio error codes
--- a/pvs-studio/build.sh Sat Aug 22 20:33:04 2020 -0500
+++ b/pvs-studio/build.sh Sat Aug 22 20:33:41 2020 -0500
@@ -1,5 +1,5 @@
#!/bin/sh -ex
-# Copyright (C) 2015-2019 Gary Kramlich <grim@reaperworld.com>
+# Copyright (C) 2015-2020 Gary Kramlich <grim@reaperworld.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@
PLOG_ARGS="--excludedCodes V011,V1042"
if [ -n "${PVS_IGNORED_CODES}" ]; then
- PLOG_ARGS="${PLOG_ARGS},${PVS_IGNORED_CODES}"
+ PLOG_ARGS="${PLOG_ARGS},${PVS_IGNORED_CODES}"
fi
# don't leak our secrets via `set -x`
@@ -36,8 +36,8 @@
# don't echo commands as we're stashing secrets
set +x
-echo "${PVS_STUDIO_USERNAME}" > /license
-echo "${PVS_STUDIO_KEY}" >> /license
+echo "${PVS_STUDIO_USERNAME}" > /tmp/license
+echo "${PVS_STUDIO_KEY}" >> /tmp/license
set -x
meson ${BUILD_DIR}
@@ -50,7 +50,7 @@
ninja -t compdb
# run the analyzer
-pvs-studio-analyzer analyze -l /license -o pvs-studio.log
+pvs-studio-analyzer analyze -l /tmp/license -o pvs-studio.log
# convert the output to html
plog-converter -a GA:1,2 -t fullhtml -o pvs-studio -p ${HG_REMOTE} -v ${HG_COMMIT} ${PLOG_ARGS} pvs-studio.log