6 # Define build matrix for Linux
9 language: generic # No host compilation
12 - DIST=ubuntu-xenial CXX=g++ CMAKE_OPTIONS="-DWITH_KDE=OFF -DWITH_WEBKIT=OFF"
13 - DIST=ubuntu-xenial CXX=clang++ CMAKE_OPTIONS="-DWITH_KDE=OFF -DWITH_WEBKIT=OFF"
14 - DIST=ubuntu-xenial CXX=g++ CMAKE_OPTIONS="-DWITH_KDE=ON -DWITH_WEBKIT=ON"
15 - DIST=ubuntu-xenial CXX=clang++ CMAKE_OPTIONS="-DWITH_KDE=ON -DWITH_WEBKIT=ON"
16 - DIST=ubuntu-bionic CXX=g++ CMAKE_OPTIONS="-DWITH_KDE=ON -DWITH_WEBKIT=ON"
17 - DIST=ubuntu-bionic CXX=clang++ CMAKE_OPTIONS="-DWITH_KDE=ON -DWITH_WEBENGINE=ON"
18 - DIST=ubuntu-eoan CXX=g++ CMAKE_OPTIONS="-DWITH_KDE=ON -DWITH_WEBENGINE=ON"
19 - DIST=ubuntu-eoan CXX=clang++ CMAKE_OPTIONS="-DWITH_KDE=ON -DWITH_WEBENGINE=ON"
20 - DIST=ubuntu-focal CXX=g++ CMAKE_OPTIONS="-DWITH_KDE=ON -DWITH_WEBENGINE=ON"
21 - DIST=ubuntu-focal CXX=clang++ CMAKE_OPTIONS="-DWITH_KDE=ON -DWITH_WEBENGINE=ON"
26 - $TRAVIS_BUILD_DIR/ccache
30 - docker pull quassel/quassel-build-env:$DIST
34 # Build inside the docker image
35 # Source, build and ccache directories are bind-mounted into the container
38 docker run -t -w /build --rm \
39 -v "$(readlink -f .):/src" \
40 -v "$(readlink -f build):/build" \
41 -v "$(readlink -f ccache):/ccache" \
42 -e CCACHE_DIR=/ccache \
43 -e CCACHE_MAXSIZE=1G \
45 quassel/quassel-build-env:$DIST \
46 sh -c "cmake /src $CMAKE_OPTIONS \
48 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
56 # Define a separate job for OSX
66 - $HOME/Library/Caches/Homebrew
68 - brew update && brew install ccache ninja qca qt5
70 - export CCACHE_MAXSIZE=1G
71 - mkdir build && cd build
73 PATH=$PATH:/usr/local/opt/qt5/bin
75 if [[ "$TRAVIS_TAG" != "" && "$GH_TOKEN" != "" ]]; then
78 cmake -GNinja .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DDEPLOY=$DEPLOY
84 api_key: "${GH_TOKEN}"
87 - "QuasselClient_MacOSX-x86_64_*.dmg"
88 - "QuasselCore_MacOSX-x86_64_*.dmg"
89 - "QuasselMono_MacOSX-x86_64_*.dmg"
93 condition: "$GH_TOKEN != ''"