From 75bc36115686b0a1d8edafd4e12b7c5ecdcd2a31 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Fri, 12 Oct 2018 21:42:29 +0200 Subject: [PATCH] Add example app to travis (using cmake) --- .travis.yml | 1 + test.sh | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bc92d60a..fb92c07f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,7 @@ addons: apt: packages: - check + - cmake - libsubunit-dev script: ./test.sh diff --git a/test.sh b/test.sh index 38b0473c..1ddc2657 100755 --- a/test.sh +++ b/test.sh @@ -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 .