.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
5 if [ "$CC" == "gcc" ]; then
6 brew install gcc@5
7 export CC=gcc-5
8 export CXX=g++-5
9 fi
10else
11 sudo apt-get clean
12 sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
13 sudo apt-get update
14 sudo apt-get install -y -q cmake libedit-dev libmagickwand-dev \
15 libpng-dev libsdl2-dev libzip-dev qtbase5-dev \
16 libqt5opengl5-dev qtmultimedia5-dev libavcodec-dev \
17 libavutil-dev libavformat-dev libavresample-dev libswscale-dev
18 if [ "$CC" == "gcc" ]; then
19 sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
20 sudo apt-get update
21 sudo apt-get install -y -q gcc-5 g++-5
22 export CC=gcc-5
23 export CXX=g++-5
24 fi
25fi