moonlight-qt/.travis.yml

54 lines
1.8 KiB
YAML
Raw Normal View History

2018-07-29 00:22:12 +00:00
language: cpp
git:
depth: 1
2019-02-16 08:59:00 +00:00
env:
- NJOBS=2
2018-07-29 00:22:12 +00:00
matrix:
include:
2018-07-29 20:26:49 +00:00
- os: osx
compiler: clang
- os: linux
sudo: required
2018-07-29 00:22:12 +00:00
dist: xenial
2018-07-29 20:26:49 +00:00
compiler: gcc
2018-07-29 00:22:12 +00:00
addons:
apt:
sources:
2019-02-13 05:38:51 +00:00
- sourceline: 'ppa:beineri/opt-qt597-xenial'
2018-08-03 09:11:44 +00:00
- sourceline: 'ppa:jonathonf/ffmpeg-4'
2018-07-29 00:22:12 +00:00
packages:
- qt59base
- qt59quickcontrols2
- qt59svg
- libesd0-dev
- libgl-dev
- libegl1-mesa-dev
- libxkbcommon-dev
- wayland-protocols
- libopus-dev
2018-08-04 01:52:53 +00:00
- libavcodec-dev
- libavutil-dev
2018-08-03 09:11:44 +00:00
- libva-dev
- libvdpau-dev
2018-07-29 00:22:12 +00:00
2018-07-29 20:26:49 +00:00
install:
- '[ "$TRAVIS_OS_NAME" != osx ] || brew install qt5'
- '[ "$TRAVIS_OS_NAME" != osx ] || brew link --force qt5'
2019-02-16 08:59:00 +00:00
- if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then export SDL2_VER=2.0.9 && wget https://www.libsdl.org/release/SDL2-$SDL2_VER.tar.gz && tar -xvf SDL2-$SDL2_VER.tar.gz && cd SDL2-$SDL2_VER && ./configure && make -j$NJOBS && sudo make install && cd ..; fi
- if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then export SDL2_TTF_VER=2.0.15 && wget https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-$SDL2_TTF_VER.tar.gz && tar -xvf SDL2_ttf-$SDL2_TTF_VER.tar.gz && cd SDL2_ttf-$SDL2_TTF_VER && ./configure && make -j$NJOBS && sudo make install && cd ..; fi
2018-07-29 20:26:49 +00:00
before_script:
- '[ "$TRAVIS_OS_NAME" != "linux" ] || source /opt/qt59/bin/qt59-env.sh'
- qmake -v
- '[[ "$TRAVIS_OS_NAME" != linux || "$CXX" != clang++ ]] || export QMAKESPEC=linux-clang'
- '[[ "$TRAVIS_OS_NAME" != linux || "$CXX" != g++ ]] || export QMAKESPEC=linux-g++'
- '[ "$TRAVIS_OS_NAME" != osx ] || export QMAKESPEC=macx-clang'
script:
- qmake moonlight-qt.pro -spec $QMAKESPEC
2019-02-16 08:59:00 +00:00
- make -j$NJOBS debug
- make -j$NJOBS release