forked from lwip-tcpip/lwip
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtravis.sh
executable file
·47 lines (40 loc) · 919 Bytes
/
travis.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
cd contrib/ports/unix/check
#build and run unit tests
make clean all
ERR=$?
if [ $ERR != 0 ]; then
echo "unittests build failed"
exit 33
fi
# Build test using make, this tests the Makefile toolchain
make check -j 4
# Build example_app using cmake, this tests the CMake toolchain
cd ../../../../
# Copy lwipcfg for example app
cp contrib/examples/example_app/lwipcfg.h.travis contrib/examples/example_app/lwipcfg.h
# Generate CMake
mkdir build
cd build
/usr/local/bin/cmake .. -G Ninja
# Build CMake
ERR=$?
if [ $ERR != 0 ]; then
echo "cmake GENERATE failed"
exit 33
fi
/usr/local/bin/cmake --build .
ERR=$?
if [ $ERR != 0 ]; then
echo "cmake build failed"
exit 33
fi
/usr/local/bin/cmake --build . --target lwipdocs
ERR=$?
if [ $ERR != 0 ]; then
echo "lwIP documentation failed"
exit 33
fi
cd ..
cd contrib/ports/unix/example_app
./iteropts.sh