mirror of https://gitlab.com/cppit/jucipp
4 changed files with 16 additions and 19 deletions
@ -1,7 +1,7 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
|
|
||||||
if [ "${cmake_command}" == "" ]; then |
if [ "${cmake_command}" == "" ]; then |
||||||
cmake_command="cmake -DCMAKE_CXX_FLAGS=\"-Werror\" .." |
cmake_command="cmake -DENABLE_TESTING=1 -DCMAKE_CXX_FLAGS=-Werror .." |
||||||
fi |
fi |
||||||
|
|
||||||
if [ "${make_command}" == "" ]; then |
if [ "${make_command}" == "" ]; then |
||||||
@ -1,16 +1,8 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
|
|
||||||
function linux () { |
if [ "${make_command}" == "" ]; then |
||||||
cd ci || exit |
make_command="make -j 2" |
||||||
sudo docker run -it \ |
fi |
||||||
-v "${PWD}/../:/jucipp/" \ |
|
||||||
"cppit/jucipp:${distribution}" \ |
|
||||||
sh -c "cd jucipp/build && scan-build -o ../html_${distribution} --status-bugs make" |
|
||||||
} |
|
||||||
|
|
||||||
#TODO should do static analysis on build |
cd jucipp/build || exit |
||||||
function osx () { |
exec sh -c "scan-build -o ../html_${distribution} --status-bugs ${make_command}" |
||||||
true |
|
||||||
} |
|
||||||
|
|
||||||
$TRAVIS_OS_NAME |
|
||||||
|
|||||||
Loading…
Reference in new issue