-deploy:
- provider: releases
- api_key: "${GH_TOKEN}"
- file_glob: true
- file:
- - "QuasselClient_MacOSX-x86_64_*.dmg"
- - "QuasselCore_MacOSX-x86_64_*.dmg"
- - "QuasselMono_MacOSX-x86_64_*.dmg"
- skip_cleanup: true
- on:
- tags: true
- condition: "$TRAVIS_OS_NAME == 'osx' && $GH_TOKEN != ''"
+# Define a separate job for OSX
+jobs:
+ include:
+ - os: osx
+ language: cpp
+ compiler: clang
+ env:
+ cache:
+ directories:
+ - $HOME/.ccache
+ - $HOME/Library/Caches/Homebrew
+ before_install:
+ - brew update && brew install ccache ninja qca qt5
+ script:
+ - mkdir build && cd build
+ - |
+ PATH=$PATH:/usr/local/opt/qt5/bin
+ DEPLOY=OFF
+ if [[ "$TRAVIS_TAG" != "" && "$GH_TOKEN" != "" ]]; then
+ DEPLOY=ON
+ fi
+ cmake -GNinja .. -DCMAKE_BUILD_TYPE=Release -DDEPLOY=$DEPLOY
+ ninja install
+ - ccache -s
+ deploy:
+ provider: releases
+ api_key: "${GH_TOKEN}"
+ file_glob: true
+ file:
+ - "QuasselClient_MacOSX-x86_64_*.dmg"
+ - "QuasselCore_MacOSX-x86_64_*.dmg"
+ - "QuasselMono_MacOSX-x86_64_*.dmg"
+ skip_cleanup: true
+ on:
+ tags: true
+ condition: "$GH_TOKEN != ''"