travis: Use ctest to execute unit tests
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 18 Oct 2018 22:20:30 +0000 (00:20 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 18 Nov 2018 10:06:43 +0000 (11:06 +0100)
ctest gives us more options than make/ninja, for example verbose
output.

.travis.yml

index 553eb16..4e2efee 100644 (file)
@@ -44,7 +44,7 @@ script:
                             -DBUILD_TESTING=ON \
                       && ninja install \
                       && ccache -s \
-                      && ninja test \
+                      && ctest -VV \
                      "
 
 # Define a separate job for OSX
@@ -72,7 +72,7 @@ jobs:
           cmake -GNinja .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DDEPLOY=$DEPLOY
           ninja install
         - ccache -s
-        - ninja test
+        - ctest -VV
       deploy:
         provider: releases
         api_key: "${GH_TOKEN}"