2014-03-11 15:46:52 +09:00
|
|
|
language: cpp
|
2016-12-18 19:55:45 +09:00
|
|
|
dist: trusty
|
2014-03-11 16:05:08 +09:00
|
|
|
|
2014-03-11 15:46:52 +09:00
|
|
|
compiler:
|
2016-11-19 23:29:08 +09:00
|
|
|
- gcc-4.9
|
2016-11-10 22:39:20 +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
|
2016-11-19 23:29:08 +09:00
|
|
|
- if [ "$CC" == "gcc" ]; then export APT_INSTALL_GPP=g++-4.9; fi
|
2014-04-27 14:15:31 +11:00
|
|
|
|
|
|
|
install:
|
2016-12-18 01:42:52 +09:00
|
|
|
- sudo apt-get install pkg-config libglew-dev libcurl3-openssl-dev libjpeg-dev libxinerama-dev libxft-dev libsdl2-dev libsdl2-image-dev libfreetype6-dev libopus-dev libopusfile-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
|
2016-11-19 23:29:08 +09:00
|
|
|
- if [ "$CC" == "gcc" ]; then export CC=gcc-4.9; fi
|
|
|
|
- if [ "$CXX" == "g++" ]; then export CXX=g++-4.9; 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
|
|
|
|
2016-11-10 22:39:20 +09:00
|
|
|
script:
|
2014-04-27 14:15:31 +11:00
|
|
|
- cmake -DOPENSPADES_RESOURCES=off ..
|
2016-12-11 23:18:16 +09:00
|
|
|
- cat CMakeCache.txt
|
2017-01-30 01:22:27 +09:00
|
|
|
- make -k
|