6 # Define build matrix for Linux
8 language: generic # No host compilation
12 - DIST=xenial CXX=clang++
17 - $TRAVIS_BUILD_DIR/ccache
21 - docker pull quassel/quassel-build-env:$DIST
25 # Build inside the docker image
26 # Source, build and ccache directories are bind-mounted into the container
29 docker run -t -w /build --rm \
30 -v "$(readlink -f .):/src" \
31 -v "$(readlink -f build):/build" \
32 -v "$(readlink -f ccache):/ccache" \
33 -e CCACHE_DIR=/ccache \
35 quassel/quassel-build-env:$DIST \
36 sh -c "cmake -GNinja /src \
37 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
42 # Define a separate job for OSX
52 - $HOME/Library/Caches/Homebrew
54 - brew update && brew install ccache ninja qca qt5
56 - mkdir build && cd build
58 PATH=$PATH:/usr/local/opt/qt5/bin
60 if [[ "$TRAVIS_TAG" != "" && "$GH_TOKEN" != "" ]]; then
63 cmake -GNinja .. -DCMAKE_BUILD_TYPE=Release -DDEPLOY=$DEPLOY
68 api_key: "${GH_TOKEN}"
71 - "QuasselClient_MacOSX-x86_64_*.dmg"
72 - "QuasselCore_MacOSX-x86_64_*.dmg"
73 - "QuasselMono_MacOSX-x86_64_*.dmg"
77 condition: "$GH_TOKEN != ''"