openspades/.travis.yml
2016-11-19 23:29:08 +09:00

30 lines
782 B
YAML

language: cpp
compiler:
- gcc-4.9
# - clang
cache: apt
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo add-apt-repository --yes ppa:zoogie/sdl2-snapshots
- sudo apt-get update
- if [ "$CC" == "gcc" ]; then export APT_INSTALL_GPP=g++-4.9; fi
install:
- 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
before_script:
# Travis defaults to plain gcc if unknown
# http://github.com/travis-ci/travis-ci/issues/979
- if [ "$CC" == "gcc" ]; then export CC=gcc-4.9; fi
- if [ "$CXX" == "g++" ]; then export CXX=g++-4.9; fi
- mkdir openspades.mk
- cd openspades.mk
script:
- cmake -DOPENSPADES_RESOURCES=off ..
- make