mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 03:52:12 -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
|
||||
if [ "$ANALYZE" = "true" ] ; then
|
||||
if [ "$ANALYZE" = "true" ]
|
||||
then
|
||||
cppcheck --error-exitcode=1 -j2 -DRANGECHECK -ISource Source toolsrc 2> stderr.txt
|
||||
RET=$?
|
||||
if [ -s stderr.txt ]
|
||||
@ -9,9 +10,14 @@ if [ "$ANALYZE" = "true" ] ; then
|
||||
exit $RET
|
||||
else
|
||||
set -e
|
||||
export VERBOSE=1
|
||||
rm -rf build/ CMakeCache.txt CMakeFiles/
|
||||
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
|
||||
DESTDIR=/tmp/whatever ninja -v install/strip
|
||||
ninja -v package
|
||||
|
Loading…
x
Reference in New Issue
Block a user