Build the full DMG on Travis CI
This commit is contained in:
parent
a0967e0281
commit
172945434c
1 changed files with 13 additions and 10 deletions
23
.travis.yml
23
.travis.yml
|
|
@ -3,13 +3,15 @@ language: cpp
|
||||||
git:
|
git:
|
||||||
depth: 1
|
depth: 1
|
||||||
|
|
||||||
env:
|
|
||||||
- NJOBS=2
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: osx
|
- os: osx
|
||||||
|
osx_image: xcode10.2
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
addons:
|
||||||
|
homebrew:
|
||||||
|
packages:
|
||||||
|
- qt
|
||||||
- os: linux
|
- os: linux
|
||||||
sudo: required
|
sudo: required
|
||||||
dist: xenial
|
dist: xenial
|
||||||
|
|
@ -35,10 +37,10 @@ matrix:
|
||||||
- libvdpau-dev
|
- libvdpau-dev
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- '[ "$TRAVIS_OS_NAME" != osx ] || brew install qt5'
|
- '[ "$TRAVIS_OS_NAME" != osx ] || brew link --force qt'
|
||||||
- '[ "$TRAVIS_OS_NAME" != osx ] || brew link --force qt5'
|
- if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then nvm use node && npm install --global create-dmg; fi
|
||||||
- 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_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$(nproc) && 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
|
- 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$(nproc) && sudo make install && cd ..; fi
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- '[ "$TRAVIS_OS_NAME" != "linux" ] || source /opt/qt59/bin/qt59-env.sh'
|
- '[ "$TRAVIS_OS_NAME" != "linux" ] || source /opt/qt59/bin/qt59-env.sh'
|
||||||
|
|
@ -48,6 +50,7 @@ before_script:
|
||||||
- '[ "$TRAVIS_OS_NAME" != osx ] || export QMAKESPEC=macx-clang'
|
- '[ "$TRAVIS_OS_NAME" != osx ] || export QMAKESPEC=macx-clang'
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- qmake moonlight-qt.pro -spec $QMAKESPEC
|
- '[ "$TRAVIS_OS_NAME" != "linux" ] || qmake moonlight-qt.pro -spec $QMAKESPEC'
|
||||||
- make -j$NJOBS debug
|
- '[ "$TRAVIS_OS_NAME" != "linux" ] || make -j$(nproc) debug'
|
||||||
- make -j$NJOBS release
|
- '[ "$TRAVIS_OS_NAME" != "linux" ] || make -j$(nproc) release'
|
||||||
|
- '[ "$TRAVIS_OS_NAME" != "osx" ] || scripts/generate-dmg.sh Release'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue