mirror of https://gitlab.com/cppit/jucipp
2 changed files with 11 additions and 5 deletions
@ -1,8 +1,15 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
|
|
||||||
|
if [ "${cmake_command}" == "" ]; then |
||||||
|
cmake_command="scan-build cmake .." |
||||||
|
fi |
||||||
|
|
||||||
if [ "${make_command}" == "" ]; then |
if [ "${make_command}" == "" ]; then |
||||||
make_command="make -j 2" |
make_command="scan-build --status-bugs make -j 2" |
||||||
fi |
fi |
||||||
|
|
||||||
cd jucipp/build || exit |
cd jucipp || echo "Can't cd into jucipp" |
||||||
exec sh -c "scan-build -o ../html_${distribution} --status-bugs ${make_command}" |
git submodule update --init --recursive # appveyor doesn't checkout recursively |
||||||
|
mkdir -p build && cd build || echo "Error making build directory" |
||||||
|
sh -c "${cmake_command}" || echo "Cmake configuration failed" |
||||||
|
exec sh -c "${make_command}" |
||||||
|
|||||||
Loading…
Reference in new issue