mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-28 14:00:28 +00:00
Travis CI support
This commit is contained in:
parent
7f9cbac232
commit
ab4b024df4
6 changed files with 42 additions and 0 deletions
27
.travis.yml
Normal file
27
.travis.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
language: cpp
|
||||||
|
|
||||||
|
git:
|
||||||
|
depth: 1
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- sudo: required
|
||||||
|
dist: xenial
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- sourceline: 'ppa:beineri/opt-qt596-xenial'
|
||||||
|
packages:
|
||||||
|
- qt59base
|
||||||
|
- qt59quickcontrols2
|
||||||
|
- qt59svg
|
||||||
|
- libesd0-dev
|
||||||
|
- libgl-dev
|
||||||
|
|
||||||
|
script:
|
||||||
|
- if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then source /opt/qt59/bin/qt59-env.sh; fi
|
||||||
|
- if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then export SDL2_VER=2.0.8 && wget https://www.libsdl.org/release/SDL2-$SDL2_VER.tar.gz && tar -xvf SDL2-$SDL2_VER.tar.gz && cd SDL2-$SDL2_VER && ./configure && make && sudo make install && cd ..; fi
|
||||||
|
- if [[ "$CC" == "gcc" ]]; then qmake moonlight-qt.pro -spec linux-g++; fi
|
||||||
|
- if [[ "$CC" == "clang" ]]; then qmake moonlight-qt.pro -spec linux-clang; fi
|
||||||
|
- make debug
|
||||||
|
- make release
|
|
@ -8,6 +8,9 @@ unix:!macx {
|
||||||
TARGET = Moonlight
|
TARGET = Moonlight
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Support debug and release builds from command line for CI
|
||||||
|
CONFIG += debug_and_release
|
||||||
|
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
|
||||||
# The following define makes your compiler emit warnings if you use
|
# The following define makes your compiler emit warnings if you use
|
||||||
|
|
|
@ -9,6 +9,9 @@ QT -= core gui
|
||||||
TARGET = moonlight-common-c
|
TARGET = moonlight-common-c
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
|
|
||||||
|
# Support debug and release builds from command line for CI
|
||||||
|
CONFIG += debug_and_release
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
INCLUDEPATH += $$PWD/../libs/windows/include
|
INCLUDEPATH += $$PWD/../libs/windows/include
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,9 @@ SUBDIRS = \
|
||||||
|
|
||||||
CONFIG += ordered
|
CONFIG += ordered
|
||||||
|
|
||||||
|
# Support debug and release builds from command line for CI
|
||||||
|
CONFIG += debug_and_release
|
||||||
|
|
||||||
# Run our compile tests
|
# Run our compile tests
|
||||||
load(configure)
|
load(configure)
|
||||||
qtCompileTest(SLVideo)
|
qtCompileTest(SLVideo)
|
||||||
|
|
|
@ -3,6 +3,9 @@ QT -= core gui
|
||||||
TARGET = opus
|
TARGET = opus
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
|
|
||||||
|
# Support debug and release builds from command line for CI
|
||||||
|
CONFIG += debug_and_release
|
||||||
|
|
||||||
OPUS_DIR = $$PWD/opus
|
OPUS_DIR = $$PWD/opus
|
||||||
DEFINES += \
|
DEFINES += \
|
||||||
USE_ALLOCA=1 \
|
USE_ALLOCA=1 \
|
||||||
|
|
|
@ -4,6 +4,9 @@ QT += network
|
||||||
TARGET = qmdnsengine
|
TARGET = qmdnsengine
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
|
|
||||||
|
# Support debug and release builds from command line for CI
|
||||||
|
CONFIG += debug_and_release
|
||||||
|
|
||||||
QMDNSE_DIR = $$PWD/qmdnsengine/src
|
QMDNSE_DIR = $$PWD/qmdnsengine/src
|
||||||
DEFINES += \
|
DEFINES += \
|
||||||
QT_NO_SIGNALS_SLOTS_KEYWORDS
|
QT_NO_SIGNALS_SLOTS_KEYWORDS
|
||||||
|
|
Loading…
Reference in a new issue