From db2c60c5ed0d793dbcb1e89192fab3e3716dd886 Mon Sep 17 00:00:00 2001 From: Simonx22 Date: Wed, 24 Jan 2018 22:57:38 +0100 Subject: [PATCH] add AppVeyor and Travis --- .travis.yml | 34 ++++++++++++++++++++++++++++++++++ appveyor.yml | 25 +++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 .travis.yml create mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..edcef9d --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..221a81b --- /dev/null +++ b/appveyor.yml @@ -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