#!/bin/sh

sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo add-apt-repository ppa:openmw/deps -y
sudo apt-get update -qq

if [ "$CC" = "gcc" ]; then sudo apt-get install -qq gcc-4.8; fi
if [ "$CC" = "gcc" ]; then export CC="gcc-4.8"; fi

sudo apt-get --force-yes install libopenal-dev libglew-dev libsdl2-static-dev libconfuse-dev libenet-dev libogg-dev libvorbis-dev

cd travis/
git clone https://github.com/omf2097/libShadowDive.git
git clone https://bitbucket.org/kode54/dumb.git

cd libShadowDive
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
make install

cd ../../dumb
mkdir dumb/cmake/build/
cd dumb/cmake/build/
cmake -DCMAKE_BUILD_TYPE=Release ..
make
make install





#!/bin/sh

sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo add-apt-repository ppa:openmw/deps -y
sudo apt-get update -qq

if test $CC = gcc; then sudo apt-get install -qq gcc-4.8; fi
if test $CC = gcc; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20; fi
if test $CC = gcc; then sudo update-alternatives --config gcc; fi

sudo apt-get --force-yes install libopenal-dev libglew-dev libsdl2-static-dev libconfuse-dev libenet-dev libogg-dev libvorbis-dev

cd travis/
git clone https://github.com/omf2097/libShadowDive.git
git clone https://bitbucket.org/kode54/dumb.git

cd libShadowDive
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
make install

cd ../../dumb
mkdir dumb/cmake/build/
cd dumb/cmake/build/
cmake -DCMAKE_BUILD_TYPE=Release ..
make
make install





Use update-alternatives for travis GCC update.
Use update-alternatives for travis GCC update.
