File: pvs_studio.sh

package info (click to toggle)
lexbor 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 44,484 kB
  • sloc: ansic: 764,896; python: 2,795; perl: 1,735; sh: 101; makefile: 71; cpp: 44
file content (18 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

if [[ ! -d $1 ]]; then
    >&2 echo "$0: error: directory not exist $1"
    exit 1
fi

mkdir -p ./pvs-studio/build
cd ./pvs-studio/build

pvs-studio-analyzer credentials ${LEXBOR_PVS_NAME} ${LEXBOR_PVS_KEY}

cmake $1 -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DLEXBOR_BUILD_EXAMPLES=ON

pvs-studio-analyzer analyze -o ../project.log -j8
plog-converter -a GA:1,2 -t tasklist -o ../project.tasks ../project.log