forked from PSI-Rockin/CorgiDS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
language: cpp | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
env: DEPLOY_FILE=corgids-linux.zip | ||
- os: osx | ||
env: DEPLOY_FILE=corgids-mac.zip | ||
|
||
before_install: | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt5; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link qt5 --force; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install qt5-default qttools5-dev-tools; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install qtmultimedia5-dev libqt5multimediawidgets5 libqt5multimedia5-plugins libqt5multimedia5; fi | ||
|
||
script: | ||
- cd CorgiDS | ||
- qmake CorgiDS.pro | ||
- make | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then macdeployqt CorgiDS.app; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then zip -r -X corgids-mac.zip CorgiDS.app $TRAVIS_BUILD_DIR/LICENSE; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then zip corgids-linux.zip CorgiDS $TRAVIS_BUILD_DIR/LICENSE; fi | ||
|
||
deploy: | ||
provider: releases | ||
api_key: $GITHUB_OAUTH_TOKEN | ||
file: $DEPLOY_FILE | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
all_branches: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
install: | ||
- set QTDIR=C:\Qt\5.9.3\mingw53_32 | ||
- set PATH=%PATH%;%QTDIR%\bin;C:\MinGW\bin | ||
build_script: | ||
- cd CorgiDS | ||
- qmake CorgiDS.pro | ||
- mingw32-make | ||
- del /S *.o | ||
- del /S *.cpp | ||
- del /S *.h | ||
- C:\Qt\5.9.3\mingw53_32\bin\windeployqt.exe %APPVEYOR_BUILD_FOLDER%\CorgiDS\release | ||
- xcopy C:\Qt\5.9.3\mingw53_32\bin\libwinpthread-1.dll %APPVEYOR_BUILD_FOLDER%\CorgiDS\release /d | ||
- xcopy C:\Qt\5.9.3\mingw53_32\bin\libgcc_s_dw2-1.dll %APPVEYOR_BUILD_FOLDER%\CorgiDS\release /d | ||
- xcopy C:\Qt\5.9.3\mingw53_32\bin\libstdc++-6.dll %APPVEYOR_BUILD_FOLDER%\CorgiDS\release /d | ||
- xcopy %APPVEYOR_BUILD_FOLDER%\LICENSE %APPVEYOR_BUILD_FOLDER%\CorgiDS\release /d | ||
artifacts: | ||
- path: CorgiDS\release | ||
name: corgids-win32 | ||
deploy: | ||
provider: GitHub | ||
auth_token: | ||
secure: 1shBeF0MANsWhNSxaiiw98elI21rU8leMhmoXYaRcBV+KPDsqeBX/wjzNKyYy1Ws | ||
artifact: corgids-win32 | ||
draft: false | ||
prerelease: false |