|
@@ -6,8 +6,8 @@ if [ $ANALYZE = "true" ]; then
|
|
if [ "$CC" = "clang" ]; then
|
|
if [ "$CC" = "clang" ]; then
|
|
mkdir -p build
|
|
mkdir -p build
|
|
cd build
|
|
cd build
|
|
- scan-build cmake -G "Unix Makefiles" -DUA_BUILD_EXAMPLES=ON -DUA_BUILD_UNIT_TESTS=ON ..
|
|
|
|
- scan-build -enable-checker security.FloatLoopCounter \
|
|
|
|
|
|
+ scan-build-3.9 cmake -DUA_BUILD_EXAMPLES=ON -DUA_BUILD_UNIT_TESTS=ON ..
|
|
|
|
+ scan-build-3.9 -enable-checker security.FloatLoopCounter \
|
|
-enable-checker security.insecureAPI.UncheckedReturn \
|
|
-enable-checker security.insecureAPI.UncheckedReturn \
|
|
--status-bugs -v \
|
|
--status-bugs -v \
|
|
make -j
|
|
make -j
|
|
@@ -15,12 +15,19 @@ if [ $ANALYZE = "true" ]; then
|
|
|
|
|
|
mkdir -p build
|
|
mkdir -p build
|
|
cd build
|
|
cd build
|
|
- scan-build cmake -G "Unix Makefiles" -DUA_ENABLE_AMALGAMATION=ON ..
|
|
|
|
- scan-build -enable-checker security.FloatLoopCounter \
|
|
|
|
|
|
+ scan-build-3.9 cmake -DUA_ENABLE_AMALGAMATION=ON ..
|
|
|
|
+ scan-build-3.9 -enable-checker security.FloatLoopCounter \
|
|
-enable-checker security.insecureAPI.UncheckedReturn \
|
|
-enable-checker security.insecureAPI.UncheckedReturn \
|
|
--status-bugs -v \
|
|
--status-bugs -v \
|
|
make -j
|
|
make -j
|
|
cd .. && rm build -rf
|
|
cd .. && rm build -rf
|
|
|
|
+
|
|
|
|
+ mkdir -p build
|
|
|
|
+ cd build
|
|
|
|
+ cmake -DUA_BUILD_EXAMPLES=ON ..
|
|
|
|
+ make -j
|
|
|
|
+ make lint
|
|
|
|
+ cd .. && rm build -rf
|
|
else
|
|
else
|
|
cppcheck --template "{file}({line}): {severity} ({id}): {message}" \
|
|
cppcheck --template "{file}({line}): {severity} ({id}): {message}" \
|
|
--enable=style --force --std=c++11 -j 8 \
|
|
--enable=style --force --std=c++11 -j 8 \
|
|
@@ -62,7 +69,7 @@ else
|
|
mkdir -p build && cd build
|
|
mkdir -p build && cd build
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=../tools/cmake/Toolchain-mingw32.cmake -DUA_ENABLE_AMALGAMATION=ON -DCMAKE_BUILD_TYPE=Release -DUA_BUILD_EXAMPLES=ON ..
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=../tools/cmake/Toolchain-mingw32.cmake -DUA_ENABLE_AMALGAMATION=ON -DCMAKE_BUILD_TYPE=Release -DUA_BUILD_EXAMPLES=ON ..
|
|
make -j
|
|
make -j
|
|
- zip -r open62541-win32.zip ../../doc ../../doc_latex/open62541.pdf ../../server_cert.der ../LICENSE ../AUTHORS ../README.md examples/server.exe examples/client.exe libopen62541.dll.a open62541.h open62541.c
|
|
|
|
|
|
+ zip -r open62541-win32.zip ../../doc_latex/open62541.pdf ../LICENSE ../AUTHORS ../README.md examples/server.exe examples/client.exe libopen62541.dll.a open62541.h open62541.c
|
|
cp open62541-win32.zip ..
|
|
cp open62541-win32.zip ..
|
|
cd .. && rm build -rf
|
|
cd .. && rm build -rf
|
|
|
|
|
|
@@ -70,7 +77,7 @@ else
|
|
mkdir -p build && cd build
|
|
mkdir -p build && cd build
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=../tools/cmake/Toolchain-mingw64.cmake -DUA_ENABLE_AMALGAMATION=ON -DCMAKE_BUILD_TYPE=Release -DUA_BUILD_EXAMPLES=ON ..
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=../tools/cmake/Toolchain-mingw64.cmake -DUA_ENABLE_AMALGAMATION=ON -DCMAKE_BUILD_TYPE=Release -DUA_BUILD_EXAMPLES=ON ..
|
|
make -j
|
|
make -j
|
|
- zip -r open62541-win64.zip ../../doc ../../doc_latex/open62541.pdf ../../server_cert.der ../LICENSE ../AUTHORS ../README.md examples/server.exe examples/client.exe libopen62541.dll.a open62541.h open62541.c
|
|
|
|
|
|
+ zip -r open62541-win64.zip ../../doc_latex/open62541.pdf ../LICENSE ../AUTHORS ../README.md examples/server.exe examples/client.exe libopen62541.dll.a open62541.h open62541.c
|
|
cp open62541-win64.zip ..
|
|
cp open62541-win64.zip ..
|
|
cd .. && rm build -rf
|
|
cd .. && rm build -rf
|
|
|
|
|
|
@@ -78,16 +85,26 @@ else
|
|
mkdir -p build && cd build
|
|
mkdir -p build && cd build
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=../tools/cmake/Toolchain-gcc-m32.cmake -DUA_ENABLE_AMALGAMATION=ON -DCMAKE_BUILD_TYPE=Release -DUA_BUILD_EXAMPLES=ON ..
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=../tools/cmake/Toolchain-gcc-m32.cmake -DUA_ENABLE_AMALGAMATION=ON -DCMAKE_BUILD_TYPE=Release -DUA_BUILD_EXAMPLES=ON ..
|
|
make -j
|
|
make -j
|
|
- tar -pczf open62541-linux32.tar.gz ../../doc ../../doc_latex/open62541.pdf ../../server_cert.der ../LICENSE ../AUTHORS ../README.md examples/server examples/client libopen62541.a open62541.h open62541.c
|
|
|
|
|
|
+ tar -pczf open62541-linux32.tar.gz ../../doc_latex/open62541.pdf ../LICENSE ../AUTHORS ../README.md examples/server examples/client libopen62541.a open62541.h open62541.c
|
|
cp open62541-linux32.tar.gz ..
|
|
cp open62541-linux32.tar.gz ..
|
|
cd .. && rm build -rf
|
|
cd .. && rm build -rf
|
|
|
|
+
|
|
|
|
+ echo "Cross compile release build for RaspberryPi"
|
|
|
|
+ mkdir -p build && cd build
|
|
|
|
+ git clone https://github.com/raspberrypi/tools
|
|
|
|
+ export PATH=$PATH:./tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/
|
|
|
|
+ cmake -DCMAKE_TOOLCHAIN_FILE=../tools/cmake/Toolchain-rpi64.cmake -DUA_ENABLE_AMALGAMATION=ON -DCMAKE_BUILD_TYPE=Release -DUA_BUILD_EXAMPLES=ON ..
|
|
|
|
+ make -j
|
|
|
|
+ tar -pczf open62541-raspberrypi.tar.gz ../../doc_latex/open62541.pdf ../LICENSE ../AUTHORS ../README.md examples/server examples/client libopen62541.a open62541.h open62541.c
|
|
|
|
+ cp open62541-raspberrypi.tar.gz ..
|
|
|
|
+ cd .. && rm build -rf
|
|
fi
|
|
fi
|
|
|
|
|
|
echo "Compile release build for 64-bit linux"
|
|
echo "Compile release build for 64-bit linux"
|
|
mkdir -p build && cd build
|
|
mkdir -p build && cd build
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DUA_ENABLE_AMALGAMATION=ON -DUA_BUILD_EXAMPLES=ON ..
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DUA_ENABLE_AMALGAMATION=ON -DUA_BUILD_EXAMPLES=ON ..
|
|
make -j
|
|
make -j
|
|
- tar -pczf open62541-linux64.tar.gz ../../doc ../../doc_latex/open62541.pdf ../../server_cert.der ../LICENSE ../AUTHORS ../README.md examples/server examples/client libopen62541.a open62541.h open62541.c
|
|
|
|
|
|
+ tar -pczf open62541-linux64.tar.gz ../../doc_latex/open62541.pdf ../LICENSE ../AUTHORS ../README.md examples/server examples/client libopen62541.a open62541.h open62541.c
|
|
cp open62541-linux64.tar.gz ..
|
|
cp open62541-linux64.tar.gz ..
|
|
cp open62541.h ../.. # copy single file-release
|
|
cp open62541.h ../.. # copy single file-release
|
|
cp open62541.c ../.. # copy single file-release
|
|
cp open62541.c ../.. # copy single file-release
|
|
@@ -126,8 +143,6 @@ else
|
|
if [ "$CC" = "gcc" ] && [ "${TRAVIS_REPO_SLUG}" = "open62541/open62541" ]; then
|
|
if [ "$CC" = "gcc" ] && [ "${TRAVIS_REPO_SLUG}" = "open62541/open62541" ]; then
|
|
echo " Building coveralls for ${TRAVIS_REPO_SLUG}"
|
|
echo " Building coveralls for ${TRAVIS_REPO_SLUG}"
|
|
coveralls -E '.*\.h' -E '.*CMakeCXXCompilerId\.cpp' -E '.*CMakeCCompilerId\.c' -r ../ || true # ignore result since coveralls is unreachable from time to time
|
|
coveralls -E '.*\.h' -E '.*CMakeCXXCompilerId\.cpp' -E '.*CMakeCCompilerId\.c' -r ../ || true # ignore result since coveralls is unreachable from time to time
|
|
- else
|
|
|
|
- echo " Skipping coveralls since not gcc and/or ${TRAVIS_REPO_SLUG} is not the main repo"
|
|
|
|
fi
|
|
fi
|
|
cd .. && rm build -rf
|
|
cd .. && rm build -rf
|
|
fi
|
|
fi
|