Skip to content

Commit

Permalink
add AppVeyor and Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Simonx22 committed Jan 24, 2018
1 parent da49762 commit db2c60c
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .travis.yml
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
25 changes: 25 additions & 0 deletions appveyor.yml
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

0 comments on commit db2c60c

Please sign in to comment.