Merge pull request #1020 from 23rd/patch-22-travis-osx

Edited .travis.yml to add compilation and deployment for OS X.
This commit is contained in:
pajlada 2019-04-27 19:12:00 +02:00 committed by GitHub
commit 124dd5e8bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,36 @@
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo apt-get update -qq
- sudo apt-get install qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev
- sudo apt-get install qt5-default qttools5-dev-tools
os: osx
osx_image: xcode10.2
addons:
homebrew:
packages:
- boost
- openssl
- rapidjson
- qt
- p7zip
compiler: clang
script:
- qmake -qt=qt5 -v
- qmake -qt=qt5
- make
- mkdir build && cd build
- /usr/local/opt/qt/bin/qmake .. && make -j8
- 7z a chatterino2.zip chatterino.app
before_deploy:
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "Travis CI"
- export GIT_TAG=nightly-mac-0.$TRAVIS_BUILD_NUMBER
- git tag $GIT_TAG -a -m "Nightly last change - $TRAVIS_COMMIT_MESSAGE"
- git push -q https://$GITHUB_KEY@github.com/fourtf/chatterino2 --tags
- ls -R
deploy:
skip_cleanup: true
provider: releases
api_key: $GITHUB_KEY
file: "chatterino2.zip"
prerelease: true
on:
tags: false
branch: nightly