Switch to Bionic build image on Travis CI

This commit is contained in:
Cameron Gutman 2019-12-14 13:06:39 -08:00
parent 5d872e8b5b
commit bf52d3189d

View File

@ -25,38 +25,39 @@ matrix:
- libstdc++6:i386 - libstdc++6:i386
- os: linux - os: linux
sudo: required sudo: required
dist: xenial dist: bionic
compiler: gcc compiler: gcc
env: TRAVIS_TARGET=linux env: TRAVIS_TARGET=linux
addons: addons:
apt: apt:
sources: sources:
- sourceline: 'ppa:beineri/opt-qt597-xenial' - sourceline: 'ppa:savoury1/multimedia'
- sourceline: 'ppa:jonathonf/ffmpeg-4' - sourceline: 'ppa:savoury1/ffmpeg4'
packages: packages:
- qt59base - qt5-default
- qt59quickcontrols2 - qtbase5-dev
- qt59svg - qtquickcontrols2-5-dev
- libesd0-dev - libqt5svg5-dev
- libgl-dev - libgl1-mesa-dev
- libegl1-mesa-dev - libegl1-mesa-dev
- libxkbcommon-dev - libxkbcommon-dev
- wayland-protocols - wayland-protocols
- libopus-dev - libopus-dev
- libavcodec-dev
- libavutil-dev
- libva-dev - libva-dev
- libvdpau-dev - libvdpau-dev
- libsdl2-dev
- qtdeclarative5-dev
- libssl-dev
- libsdl2-ttf-dev
- libavcodec-dev
- libavutil-dev
install: install:
- '[ "$TRAVIS_TARGET" != osx ] || brew link --force qt' - '[ "$TRAVIS_TARGET" != osx ] || brew link --force qt'
- if [[ "$TRAVIS_TARGET" = "osx" ]]; then nvm use node && npm install --global create-dmg; fi - if [[ "$TRAVIS_TARGET" = "osx" ]]; then nvm use node && npm install --global create-dmg; fi
- if [[ "$TRAVIS_TARGET" = "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_TARGET" = "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
- if [[ "$TRAVIS_TARGET" = "steamlink" ]]; then git clone --depth=1 https://github.com/ValveSoftware/steamlink-sdk.git $HOME/steamlink-sdk; fi - if [[ "$TRAVIS_TARGET" = "steamlink" ]]; then git clone --depth=1 https://github.com/ValveSoftware/steamlink-sdk.git $HOME/steamlink-sdk; fi
before_script: before_script:
- '[ "$TRAVIS_TARGET" != "linux" ] || source /opt/qt59/bin/qt59-env.sh'
- '[ "$TRAVIS_TARGET" = "steamlink" ] || qmake -v' - '[ "$TRAVIS_TARGET" = "steamlink" ] || qmake -v'
- '[[ "$TRAVIS_TARGET" != linux || "$CXX" != clang++ ]] || export QMAKESPEC=linux-clang' - '[[ "$TRAVIS_TARGET" != linux || "$CXX" != clang++ ]] || export QMAKESPEC=linux-clang'
- '[[ "$TRAVIS_TARGET" != linux || "$CXX" != g++ ]] || export QMAKESPEC=linux-g++' - '[[ "$TRAVIS_TARGET" != linux || "$CXX" != g++ ]] || export QMAKESPEC=linux-g++'