modernize: Reformat ALL the source... again!
[quassel.git] / .travis.yml
index 316377f..553eb16 100644 (file)
@@ -35,13 +35,16 @@ script:
                -v "$(readlink -f build):/build" \
                -v "$(readlink -f ccache):/ccache" \
                -e CCACHE_DIR=/ccache \
+               -e CCACHE_MAXSIZE=1G \
                -e CXX=$CXX \
                quassel/quassel-build-env:$DIST \
                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
@@ -58,6 +61,7 @@ jobs:
       before_install:
         - brew update && brew install ccache ninja qca qt5
       script:
+        - export CCACHE_MAXSIZE=1G
         - mkdir build && cd build
         - |
           PATH=$PATH:/usr/local/opt/qt5/bin
@@ -65,9 +69,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}"