1 # Travis-CI configuration file for SuperTuxKart
3 # Configuration manual:
4 # http://docs.travis-ci.com/user/build-configuration/
6 # Heavily borrowed from SuperTuxKart's travis.yml.
8 # SuperTuxKart's travis.yml file can be found here:
9 # https://github.com/supertuxkart/stk-code/blob/master/.travis.yml
10 # License: https://github.com/supertuxkart/stk-code/blob/master/COPYING
20 - sudo apt-get update -qq
21 - sudo apt-get install build-essential libogg-dev libvorbis-dev libphysfs-dev libglew-dev libopenal-dev libboost-all-dev
23 # Current gcc that supports C++ 11 features
24 - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
25 - sudo apt-get update -qq
26 - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
27 - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
30 - wget http://www.cmake.org/files/v3.0/cmake-3.0.1.tar.gz -O - | tar xz
31 - (cd cmake-3.0.1 && cmake . && make && sudo make install)
34 - wget http://libsdl.org/release/SDL2-2.0.3.tar.gz -O - | tar xz
35 - (cd SDL2-2.0.3 && ./configure --prefix=/usr && make -j5 && sudo make install)
36 - wget http://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.0.tar.gz -O - | tar xz
37 - (cd SDL2_image-2.0.0 && ./configure --prefix=/usr && make -j5 && sudo make install)
40 # First a debug build:
43 - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCHECK_ASSETS=off
45 # Then a release build:
49 - cmake .. -DCMAKE_BUILD_TYPE=Release -DCHECK_ASSETS=off
55 - "irc.freenode.org#supertux"
59 #- "[%{commit}: %{author}] %{message}"
61 - "[%{repository}#%{branch} @%{commit}] %{author}): %{message}"
62 - "Diff: %{compare_url}"
63 - "Build: %{build_url}"