2014-03-11 15:46:52 +09:00
|
|
|
language: cpp
|
2014-03-11 16:05:08 +09:00
|
|
|
|
2014-03-11 15:46:52 +09:00
|
|
|
compiler:
|
2014-03-11 17:00:20 +09:00
|
|
|
- gcc-4.8
|
2014-03-11 15:46:52 +09:00
|
|
|
- clang
|
2014-03-11 16:05:08 +09:00
|
|
|
|
|
|
|
cache: apt
|
|
|
|
|
|
|
|
before_install:
|
2014-03-11 17:02:33 +09:00
|
|
|
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
|
2014-04-27 14:15:31 +11:00
|
|
|
- sudo add-apt-repository --yes ppa:zoogie/sdl2-snapshots
|
2014-03-11 16:05:08 +09:00
|
|
|
- sudo apt-get update
|
2014-04-27 14:15:31 +11:00
|
|
|
- export PACKAGES_TO_INSTALL="pkg-config libglew-dev libcurl3-openssl-dev libjpeg-dev libxinerama-dev libxft-dev libsdl2 libsdl2-image"
|
|
|
|
- if [ "$CC" == "gcc" ]; then export PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL g++-4.8"; fi
|
|
|
|
|
|
|
|
install:
|
|
|
|
- sudo apt-get install $PACKAGES_TO_INSTALL
|
|
|
|
|
|
|
|
before_script:
|
2014-03-11 17:29:21 +09:00
|
|
|
# Travis defaults to plain gcc if unknown
|
|
|
|
# http://github.com/travis-ci/travis-ci/issues/979
|
|
|
|
- if [ "$CC" == "gcc" ]; then export CC=gcc-4.8; fi
|
2014-04-27 14:15:31 +11:00
|
|
|
- if [ "$CXX" == "g++" ]; then export CXX=g++-4.8; fi
|
2014-03-11 15:46:52 +09:00
|
|
|
|
2014-04-27 14:15:31 +11:00
|
|
|
- mkdir openspades.mk
|
|
|
|
- cd openspades.mk
|
2014-03-11 15:46:52 +09:00
|
|
|
|
2014-04-27 14:15:31 +11:00
|
|
|
script:
|
|
|
|
- cmake -DOPENSPADES_RESOURCES=off ..
|
|
|
|
- make
|