Cleanup travis build script

This commit is contained in:
Dirk Ziegelmeier 2019-02-03 09:03:22 +01:00
parent 71f56714dd
commit 8a08c4cd4f

View File

@ -1,16 +1,18 @@
#!/bin/bash #!/bin/bash
cd contrib/ports/unix/check cd contrib/ports/unix/check
#build and run unit tests #build and run unit tests
make clean all make clean all
# Build test using make, this tests the Makefile toolchain
make check -j 4
ERR=$? ERR=$?
echo Return value from unittests: $ERR
if [ $ERR != 0 ]; then if [ $ERR != 0 ]; then
echo "unittests build failed" echo "unittests build failed"
exit 33 exit 33
fi fi
# Build test using make, this tests the Makefile toolchain
make check -j 4
# Build example_app using cmake, this tests the CMake toolchain # Build example_app using cmake, this tests the CMake toolchain
cd ../../../../ cd ../../../../
@ -21,31 +23,37 @@ cp contrib/examples/example_app/lwipcfg.h.travis contrib/examples/example_app/lw
mkdir build mkdir build
cd build cd build
/usr/local/bin/cmake .. -G Ninja /usr/local/bin/cmake .. -G Ninja
# Build CMake
ERR=$? ERR=$?
echo Return value from cmake generate: $ERR
if [ $ERR != 0 ]; then if [ $ERR != 0 ]; then
echo "cmake GENERATE failed" echo "cmake GENERATE failed"
exit 33 exit 33
fi fi
# Build CMake
/usr/local/bin/cmake --build . /usr/local/bin/cmake --build .
ERR=$? ERR=$?
echo Return value from build: $ERR
if [ $ERR != 0 ]; then if [ $ERR != 0 ]; then
echo "cmake build failed" echo "cmake build failed"
exit 33 exit 33
fi fi
# Build docs
/usr/local/bin/cmake --build . --target lwipdocs /usr/local/bin/cmake --build . --target lwipdocs
ERR=$? ERR=$?
echo Return value from lwipdocs: $ERR
if [ $ERR != 0 ]; then if [ $ERR != 0 ]; then
echo "lwIP documentation failed" echo "lwIP documentation failed"
exit 33 exit 33
fi fi
# Test different lwipopts.h
cd .. cd ..
cd contrib/ports/unix/example_app cd contrib/ports/unix/example_app
./iteropts.sh ./iteropts.sh
ERR=$? ERR=$?
echo Return value from iteropts: $ERR
if [ $ERR != 0 ]; then if [ $ERR != 0 ]; then
echo "lwIP iteropts test failed" echo "lwIP iteropts test failed"
exit 33 exit 33