mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
allow CI script to create release builds
This commit is contained in:
parent
517e96c86f
commit
b28aee2679
10
.travis.sh
10
.travis.sh
@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ "$ANALYZE" = "true" ] ; then
|
if [ "$ANALYZE" = "true" ]
|
||||||
|
then
|
||||||
cppcheck --error-exitcode=1 -j2 -DRANGECHECK -ISource Source toolsrc 2> stderr.txt
|
cppcheck --error-exitcode=1 -j2 -DRANGECHECK -ISource Source toolsrc 2> stderr.txt
|
||||||
RET=$?
|
RET=$?
|
||||||
if [ -s stderr.txt ]
|
if [ -s stderr.txt ]
|
||||||
@ -9,9 +10,14 @@ if [ "$ANALYZE" = "true" ] ; then
|
|||||||
exit $RET
|
exit $RET
|
||||||
else
|
else
|
||||||
set -e
|
set -e
|
||||||
|
export VERBOSE=1
|
||||||
rm -rf build/ CMakeCache.txt CMakeFiles/
|
rm -rf build/ CMakeCache.txt CMakeFiles/
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake -G "Ninja" "$CROSSRULE" .. -DENABLE_WERROR=ON
|
if [ -n "$RELEASE" ]
|
||||||
|
then
|
||||||
|
BUILD_TYPE="-DCMAKE_BUILD_TYPE=Release"
|
||||||
|
fi
|
||||||
|
cmake -G "Ninja" "$BUILD_TYPE" "$CROSSRULE" .. -DENABLE_WERROR=ON
|
||||||
ninja -v
|
ninja -v
|
||||||
DESTDIR=/tmp/whatever ninja -v install/strip
|
DESTDIR=/tmp/whatever ninja -v install/strip
|
||||||
ninja -v package
|
ninja -v package
|
||||||
|
Loading…
x
Reference in New Issue
Block a user