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
23 - CMAKE_VERSION=3.0.2 SDL2_VERSION=2.0.3 SDL2IMAGE_VERSION=2.0.0
26 - sudo apt-get update -qq
27 - sudo apt-get install build-essential libogg-dev libvorbis-dev libphysfs-dev libglew-dev libopenal-dev libboost-all-dev
29 # Current gcc that supports C++ 11 features
30 - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
31 - sudo apt-get update -qq
32 - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
33 - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
36 - wget http://www.cmake.org/files/v3.0/cmake-$CMAKE_VERSION.tar.gz -O - | tar xz
37 - (cd cmake-$CMAKE_VERSION && cmake . && make -j5 && sudo make install)
40 - wget http://libsdl.org/release/SDL2-$SDL2_VERSION.tar.gz -O - | tar xz
41 - (cd SDL2-$SDL2_VERSION && ./configure --prefix=/usr && make -j5 && sudo make install)
42 - wget http://www.libsdl.org/projects/SDL_image/release/SDL2_image-$SDL2IMAGE_VERSION.tar.gz -O - | tar xz
43 - (cd SDL2_image-$SDL2IMAGE_VERSION && ./configure --prefix=/usr && make -j5 && sudo make install)
46 # First a debug build:
49 - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCHECK_ASSETS=off
50 - make VERBOSE=1 -j $(nproc)
51 # Then a release build:
55 - cmake .. -DCMAKE_BUILD_TYPE=Release -DCHECK_ASSETS=off
56 - make VERBOSE=1 -j $(nproc)
60 - supertux-commit@lists.lethargik.org