mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-09-20 12:02:28 +02:00
4a05f15c9a
Enable coverity analysis for the release/2.4 branch. We can only do a limited number of coverity scans per week with our FOSS account, but since we only occasionally push commits, that should work out fine. But this limit is the reason we don't use the standard travis addon, because that would cause the coverity script to run on all of our matrix builds. That would cause us to reach our limit faster, and waste travis' resources. Since our FOSS coverity account doesn't handle multiple branches very well, we have to pick one branch to run coverity on. I think it's best to use the most recent stable branch for that (i.e. for now, release/2.4). Though for ease of maintenance, it's probably best to apply the patch to both master and release/2.4. Signed-off-by: Steffan Karger <steffan.karger@fox-it.com> Acked-by: Antonio Quartulli <a@unstable.cc> Message-Id: <1502207741-31750-1-git-send-email-steffan.karger@fox-it.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15176.html Signed-off-by: David Sommerseth <davids@openvpn.net>
18 lines
657 B
Bash
Executable File
18 lines
657 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
RUN_COVERITY="${RUN_COVERITY:-0}"
|
|
|
|
export COVERITY_SCAN_PROJECT_NAME="OpenVPN/openvpn"
|
|
export COVERITY_SCAN_BRANCH_PATTERN="release\/2.4"
|
|
export COVERITY_SCAN_NOTIFICATION_EMAIL="scan-reports@openvpn.net"
|
|
export COVERITY_SCAN_BUILD_COMMAND_PREPEND="autoreconf -vi && ./configure --enable-iproute2 && make clean"
|
|
export COVERITY_SCAN_BUILD_COMMAND="make"
|
|
|
|
if [ "${RUN_COVERITY}" = "1" ]; then
|
|
# Ignore exit code, script exits with 1 if we're not on the right branch
|
|
curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true
|
|
else
|
|
echo "Skipping coverity scan because \$RUN_COVERITY != \"1\""
|
|
fi
|