.travis-deps.sh (view raw)
1#!/bin/sh
2if [ $TRAVIS_OS_NAME = "osx" ]; then
3 brew update
4 brew install qt5 ffmpeg imagemagick sdl2 libzip libpng
5else
6 sudo add-apt-repository ppa:smspillaz/cmake-2.8.12 -y
7 sudo add-apt-repository ppa:zoogie/sdl2-snapshots -y
8 sudo add-apt-repository ppa:immerrr-k/qt5-backport -y
9 sudo add-apt-repository ppa:spvkgn/ffmpeg+mpv -y
10 sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
11 sudo apt-get update -qq
12 sudo apt-get purge cmake -qq
13 sudo apt-get install -y -qq cmake libedit-dev libmagickwand-dev \
14 g++-4.8 libpng-dev libsdl2-dev libzip-dev qtbase5-dev \
15 libqt5opengl5-dev qtmultimedia5-dev libavcodec-dev \
16 libavutil-dev libavformat-dev libavresample-dev libswscale-dev
17 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100
18 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 100
19fi