From 9788cfa5e3cac958a8c4f9e56343c27e396bc8f2 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Mon, 24 Sep 2018 21:04:30 +0200 Subject: [PATCH 1/1] tests: Enable tests in Travis Build Quassel with -DBUILD_TESTING=ON and run the tests as part of the CI build. --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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}" -- 2.20.1