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: apt:
packages: packages:
- check - check
- cmake
- libsubunit-dev - libsubunit-dev
script: ./test.sh script: ./test.sh

14
test.sh
View File

@ -12,4 +12,16 @@ if [ $ERR != 0 ]; then
echo "unittests build failed" echo "unittests build failed"
exit 33 exit 33
fi 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 .