mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-03 21:32:08 +00:00
Getting CMake build running on travis
This commit is contained in:
parent
ea1337d5a2
commit
31545ed787
14
travis.sh
14
travis.sh
@ -8,16 +8,24 @@ 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
|
make check -j 4
|
||||||
|
|
||||||
cd ../../../../
|
|
||||||
|
|
||||||
|
# Build example_app using cmake, this tests the CMake toolchain
|
||||||
|
cd ../../../../
|
||||||
|
# Copy lwipcfg for example app
|
||||||
|
cp contrib/examples/example_app/lwipcfg.h.example contrib/examples/example_app/lwipcfg.h
|
||||||
|
|
||||||
|
# Generate CMake
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
|
|
||||||
|
# Build CMake
|
||||||
ERR=$?
|
ERR=$?
|
||||||
if [ $ERR != 0 ]; then
|
if [ $ERR != 0 ]; then
|
||||||
echo "cmake failed"
|
echo "cmake build failed"
|
||||||
exit 33
|
exit 33
|
||||||
fi
|
fi
|
||||||
cmake --build .
|
cmake --build . -- -j 4
|
||||||
|
Loading…
Reference in New Issue
Block a user