From: Manuel Nickschas Date: Mon, 24 Sep 2018 19:04:30 +0000 (+0200) Subject: tests: Enable tests in Travis X-Git-Tag: test-travis-01~119 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=9788cfa5e3cac958a8c4f9e56343c27e396bc8f2;hp=ed5b2ff32158ae72c011eb1228f373cec05cbfeb tests: Enable tests in Travis Build Quassel with -DBUILD_TESTING=ON and run the tests as part of the CI build. --- diff --git a/.travis.yml b/.travis.yml index 316377f2..ec65a2d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,8 +40,10 @@ script: sh -c "cmake /src $CMAKE_OPTIONS \ -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DBUILD_TESTING=ON \ && ninja install \ && ccache -s \ + && ninja test \ " # Define a separate job for OSX @@ -65,9 +67,10 @@ jobs: if [[ "$TRAVIS_TAG" != "" && "$GH_TOKEN" != "" ]]; then DEPLOY=ON fi - cmake -GNinja .. -DCMAKE_BUILD_TYPE=Release -DDEPLOY=$DEPLOY + cmake -GNinja .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DDEPLOY=$DEPLOY ninja install - ccache -s + - ninja test deploy: provider: releases api_key: "${GH_TOKEN}"