openspades/.travis.yml

33 lines
1001 B
YAML
Raw Normal View History

2014-03-11 15:46:52 +09:00
language: cpp
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
cache: apt
before_install:
2014-03-11 17:02:33 +09:00
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- 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 14:35:38 +11:00
- sudo apt-get install pkg-config libglew-dev libcurl3-openssl-dev libjpeg-dev libxinerama-dev libxft-dev $APT_INSTALL_GPP
2014-04-27 14:27:12 +11:00
- 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 ..
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