Add example app to travis (using cmake)

This commit is contained in:
Dirk Ziegelmeier 2018-10-12 21:42:29 +02:00
parent 0528f68c6d
commit 75bc361156
2 changed files with 14 additions and 1 deletions

View File

@ -30,6 +30,7 @@ addons:
apt:
packages:
- check
- cmake
- libsubunit-dev
script: ./test.sh

14
test.sh
View File

@ -12,4 +12,16 @@ if [ $ERR != 0 ]; then
echo "unittests build failed"
exit 33
fi
make check
make check -j 4
cd ../../../../
mkdir build
cd build
cmake ..
ERR=$?
if [ $ERR != 0 ]; then
echo "cmake failed"
exit 33
fi
cmake --build .