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
24 - sudo apt-get update -qq
25 - sudo apt-get install build-essential libogg-dev libvorbis-dev libphysfs-dev libglew-dev libopenal-dev libboost-all-dev
27 # Current gcc that supports C++ 11 features
28 - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
29 - sudo apt-get update -qq
30 - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
31 - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
34 - wget http://www.cmake.org/files/v3.0/cmake-3.0.1.tar.gz -O - | tar xz
35 - (cd cmake-3.0.1 && cmake . && make && sudo make install)
38 - wget http://libsdl.org/release/SDL2-2.0.3.tar.gz -O - | tar xz
39 - (cd SDL2-2.0.3 && ./configure --prefix=/usr && make -j5 && sudo make install)
40 - wget http://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.0.tar.gz -O - | tar xz
41 - (cd SDL2_image-2.0.0 && ./configure --prefix=/usr && make -j5 && sudo make install)
44 # First a debug build:
47 - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCHECK_ASSETS=off
49 # Then a release build:
53 - cmake .. -DCMAKE_BUILD_TYPE=Release -DCHECK_ASSETS=off
59 - "irc.freenode.org#supertux"
63 #- "[%{commit}: %{author}] %{message}"
65 - "[%{repository}#%{branch} @%{commit}] %{author}): %{message}"
66 - "Diff: %{compare_url}"
67 - "Build: %{build_url}"