2018-07-29 00:22:12 +00:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
git:
|
|
|
|
depth: 1
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2018-07-29 20:26:49 +00:00
|
|
|
- os: osx
|
2019-08-03 03:46:27 +00:00
|
|
|
osx_image: xcode10.2
|
2018-07-29 20:26:49 +00:00
|
|
|
compiler: clang
|
2019-08-03 04:09:43 +00:00
|
|
|
env: TRAVIS_TARGET=osx
|
2019-08-03 03:46:27 +00:00
|
|
|
addons:
|
|
|
|
homebrew:
|
|
|
|
packages:
|
|
|
|
- qt
|
2018-07-29 20:26:49 +00:00
|
|
|
- os: linux
|
|
|
|
sudo: required
|
2018-07-29 00:22:12 +00:00
|
|
|
dist: xenial
|
2018-07-29 20:26:49 +00:00
|
|
|
compiler: gcc
|
2019-08-03 04:09:43 +00:00
|
|
|
env: TRAVIS_TARGET=steamlink
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libc6:i386
|
|
|
|
- libstdc++6:i386
|
|
|
|
- os: linux
|
|
|
|
sudo: required
|
2019-12-14 21:06:39 +00:00
|
|
|
dist: bionic
|
2019-08-03 04:09:43 +00:00
|
|
|
compiler: gcc
|
|
|
|
env: TRAVIS_TARGET=linux
|
2018-07-29 00:22:12 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2019-12-14 21:06:39 +00:00
|
|
|
- sourceline: 'ppa:savoury1/multimedia'
|
|
|
|
- sourceline: 'ppa:savoury1/ffmpeg4'
|
2018-07-29 00:22:12 +00:00
|
|
|
packages:
|
2019-12-14 21:06:39 +00:00
|
|
|
- qt5-default
|
|
|
|
- qtbase5-dev
|
|
|
|
- qtquickcontrols2-5-dev
|
|
|
|
- libqt5svg5-dev
|
|
|
|
- libgl1-mesa-dev
|
2018-08-12 03:56:08 +00:00
|
|
|
- libegl1-mesa-dev
|
|
|
|
- libxkbcommon-dev
|
|
|
|
- wayland-protocols
|
2018-07-31 04:48:33 +00:00
|
|
|
- libopus-dev
|
2018-08-03 09:11:44 +00:00
|
|
|
- libva-dev
|
|
|
|
- libvdpau-dev
|
2019-12-14 21:06:39 +00:00
|
|
|
- libsdl2-dev
|
|
|
|
- qtdeclarative5-dev
|
|
|
|
- libssl-dev
|
|
|
|
- libsdl2-ttf-dev
|
|
|
|
- libavcodec-dev
|
|
|
|
- libavutil-dev
|
2018-07-29 00:22:12 +00:00
|
|
|
|
2018-07-29 20:26:49 +00:00
|
|
|
install:
|
2019-08-03 04:09:43 +00:00
|
|
|
- '[ "$TRAVIS_TARGET" != osx ] || brew link --force qt'
|
|
|
|
- if [[ "$TRAVIS_TARGET" = "osx" ]]; then nvm use node && npm install --global create-dmg; fi
|
|
|
|
- if [[ "$TRAVIS_TARGET" = "steamlink" ]]; then git clone --depth=1 https://github.com/ValveSoftware/steamlink-sdk.git $HOME/steamlink-sdk; fi
|
2018-07-29 20:26:49 +00:00
|
|
|
|
|
|
|
before_script:
|
2019-08-03 04:09:43 +00:00
|
|
|
- '[ "$TRAVIS_TARGET" = "steamlink" ] || qmake -v'
|
|
|
|
- '[[ "$TRAVIS_TARGET" != linux || "$CXX" != clang++ ]] || export QMAKESPEC=linux-clang'
|
|
|
|
- '[[ "$TRAVIS_TARGET" != linux || "$CXX" != g++ ]] || export QMAKESPEC=linux-g++'
|
|
|
|
- '[ "$TRAVIS_TARGET" != osx ] || export QMAKESPEC=macx-clang'
|
|
|
|
- '[ "$TRAVIS_TARGET" != "steamlink" ] || export STEAMLINK_SDK_PATH=$HOME/steamlink-sdk'
|
2018-07-29 20:26:49 +00:00
|
|
|
|
|
|
|
script:
|
2019-08-03 04:09:43 +00:00
|
|
|
- '[ "$TRAVIS_TARGET" != "linux" ] || qmake moonlight-qt.pro -spec $QMAKESPEC'
|
|
|
|
- '[ "$TRAVIS_TARGET" != "linux" ] || make -j$(nproc) debug'
|
|
|
|
- '[ "$TRAVIS_TARGET" != "linux" ] || make -j$(nproc) release'
|
|
|
|
- '[ "$TRAVIS_TARGET" != "osx" ] || scripts/generate-dmg.sh Release'
|
|
|
|
- '[ "$TRAVIS_TARGET" != "steamlink" ] || scripts/build-steamlink-app.sh'
|