mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 13:11:19 +01:00
Adding a static analyzer.
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -50,4 +50,7 @@ pubspec.lock
|
||||
*.DS_Store
|
||||
|
||||
# Generated docs
|
||||
rive/docs
|
||||
rive/docs
|
||||
|
||||
# Analysis results
|
||||
dev/analysis_report
|
||||
19
dev/analyze.sh
Executable file
19
dev/analyze.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# install scan-build
|
||||
if ! command -v scan-build &> /dev/null
|
||||
then
|
||||
if ! command -v pip &> /dev/null
|
||||
then
|
||||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
||||
python3 get-pip.py
|
||||
fi
|
||||
pip install scan-build
|
||||
fi
|
||||
|
||||
|
||||
cd test
|
||||
premake5 clean || exit 1
|
||||
premake5 gmake || exit 1
|
||||
scan-build -o ../analysis_report/ make -j7 || exit 1
|
||||
premake5 clean
|
||||
Reference in New Issue
Block a user