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 19:34:07 +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:35:38 +11:00
|
|
|
- if [ "$CC" == "gcc" ]; then export APT_INSTALL_GPP=g++-4.8; fi
|
2014-04-27 14:15:31 +11:00
|
|
|
|
|
|
|
install:
|
2014-04-27 19:34:07 +11:00
|
|
|
- sudo apt-get install pkg-config libglew-dev libcurl3-openssl-dev libjpeg-dev libxinerama-dev libxft-dev libsdl2-dev libsdl2-image-dev $APT_INSTALL_GPP
|
2014-04-27 14:15:31 +11:00
|
|
|
|
|
|
|
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
|