Edited .travis.yml to add compilation and deployment for OS X.

This commit is contained in:
23rd 2019-04-25 11:47:36 +03:00
parent 3113513290
commit 68ce262d9e

View file

@ -1,10 +1,36 @@
before_install: os: osx
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa osx_image: xcode10.2
- sudo apt-get update -qq
- sudo apt-get install qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev addons:
- sudo apt-get install qt5-default qttools5-dev-tools homebrew:
packages:
- boost
- openssl
- rapidjson
- qt
- p7zip
compiler: clang
script: script:
- qmake -qt=qt5 -v - mkdir build && cd build
- qmake -qt=qt5 - /usr/local/opt/qt/bin/qmake .. && make -j8
- make - 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