openspades/.travis.yml
2014-04-27 14:27:12 +11:00

34 lines
1.0 KiB
YAML

language: cpp
compiler:
- gcc-4.8
- clang
cache: apt
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo apt-get update
- export PACKAGES_TO_INSTALL="pkg-config libglew-dev libcurl3-openssl-dev libjpeg-dev libxinerama-dev libxft-dev"
- if [ "$CC" == "gcc" ]; then export PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL g++-4.8"; fi
install:
- sudo apt-get install $PACKAGES_TO_INSTALL
- curl http://www.libsdl.org/release/SDL2-2.0.3.tar.gz | tar -xz
- cd SDL2-2.0.3 && ./configure && make && sudo make install && cd ..
- curl https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.0.tar.gz | tar -xz
- cd SDL2_image-2.0.0 && ./configure && make && sudo make install && cd ..
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.8; fi
- if [ "$CXX" == "g++" ]; then export CXX=g++-4.8; fi
- mkdir openspades.mk
- cd openspades.mk
script:
- cmake -DOPENSPADES_RESOURCES=off ..
- make