|
|
|
@ -8,24 +8,22 @@ git:
@@ -8,24 +8,22 @@ git:
|
|
|
|
|
matrix: |
|
|
|
|
include: |
|
|
|
|
- os: linux |
|
|
|
|
env: CONFIG=release |
|
|
|
|
env: SPEC=linux-g++-64 CONFIG=debug |
|
|
|
|
- os: linux |
|
|
|
|
env: CONFIG=debug |
|
|
|
|
env: SPEC=linux-g++-64 CONFIG=installer |
|
|
|
|
- os: osx |
|
|
|
|
osx_image: beta-xcode6.3 |
|
|
|
|
env: CONFIG=release |
|
|
|
|
env: SPEC=macx-clang CONFIG=debug |
|
|
|
|
- os: osx |
|
|
|
|
osx_image: beta-xcode6.3 |
|
|
|
|
env: CONFIG=debug |
|
|
|
|
env: SPEC=macx-clang CONFIG=installer |
|
|
|
|
|
|
|
|
|
cache: |
|
|
|
|
- apt |
|
|
|
|
|
|
|
|
|
before_install: |
|
|
|
|
- cd ${TRAVIS_BUILD_DIR} && git fetch --unshallow && git fetch --tags |
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then mkdir -p $HOME/Library/Preferences/QtProject/ && echo "[Rules]\n *Log.debug=false" >> $HOME/Library/Preferences/QtProject/qtlogging.ini; fi |
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then cp ${TRAVIS_BUILD_DIR}/test/qtlogging.ini ~/Library/Preferences/; fi |
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then cp ${TRAVIS_BUILD_DIR}/test/qtlogging.ini ~/Library/Preferences/QtProject/; fi |
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then mkdir -p $HOME/Library/Preferences/QtProject/ && cp ${TRAVIS_BUILD_DIR}/test/qtlogging.ini ~/Library/Preferences/QtProject/; fi |
|
|
|
|
|
|
|
|
|
install: |
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then |
|
|
|
@ -50,7 +48,7 @@ install:
@@ -50,7 +48,7 @@ install:
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
before_script: qmake CONFIG+=${CONFIG} -r qgroundcontrol.pro |
|
|
|
|
before_script: qmake -r qgroundcontrol.pro CONFIG+=${CONFIG} CONFIG+=WarningsAsErrorsOn -spec ${SPEC} |
|
|
|
|
script: |
|
|
|
|
- echo 'Building QGroundControl' && echo -en 'travis_fold:start:script.1\\r' |
|
|
|
|
- make -j4 |
|
|
|
@ -60,15 +58,15 @@ script:
@@ -60,15 +58,15 @@ script:
|
|
|
|
|
- if [[ "${TRAVIS_OS_NAME}" = "osx" && "${CONFIG}" = "debug" ]]; then ./debug/qgroundcontrol.app/Contents/MacOS/qgroundcontrol --unittest; fi |
|
|
|
|
- echo -en 'travis_fold:end:script.2\\r' |
|
|
|
|
|
|
|
|
|
#deploy: |
|
|
|
|
# provider: releases |
|
|
|
|
# api-key: |
|
|
|
|
# secure: "" |
|
|
|
|
# file: "release/qgroundcontrol" |
|
|
|
|
# skip_cleanup: true |
|
|
|
|
# on: |
|
|
|
|
# tags: true |
|
|
|
|
# all_branches: true |
|
|
|
|
deploy: |
|
|
|
|
provider: releases |
|
|
|
|
api-key: |
|
|
|
|
secure: "" |
|
|
|
|
file: "release/qgroundcontrol.dmg" |
|
|
|
|
skip_cleanup: true |
|
|
|
|
on: |
|
|
|
|
tags: true |
|
|
|
|
all_branches: true |
|
|
|
|
|
|
|
|
|
notifications: |
|
|
|
|
webhooks: |
|
|
|
|