.travis.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Travis-CI configuration file for SuperTuxKart
  2. #
  3. # Configuration manual:
  4. # http://docs.travis-ci.com/user/build-configuration/
  5. #
  6. language: cpp
  7. compiler:
  8. - gcc
  9. # - clang
  10. #branches:
  11. # only:
  12. # - master
  13. before_install:
  14. # Update repos
  15. - sudo apt-get update -qq
  16. # Install dependencies
  17. - sudo apt-get install build-essential libogg-dev libvorbis-dev libopenal-dev libxxf86vm-dev libcurl4-openssl-dev libfribidi-dev libbluetooth-dev
  18. # Install mesa from an other repo (a newer version is required). Quantal is not supported anymore, saucy is only supported till July 2014,
  19. # so we try to use trusty (precise which is what traiv uses a too old mesa version which doesn't link)
  20. - sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu trusty main restricted"
  21. - sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32
  22. - sudo apt-get update -qq
  23. - sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev libglew-dev cmake
  24. script:
  25. # First a debug build:
  26. - mkdir build-debug
  27. - cd build-debug
  28. - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCHECK_ASSETS=off
  29. - make VERBOSE=1 -j 4
  30. # Then a release build:
  31. - cd ..
  32. - mkdir build-release
  33. - cd build-release
  34. - cmake .. -DCMAKE_BUILD_TYPE=Release -DCHECK_ASSETS=off
  35. - make VERBOSE=1 -j 4
  36. notifications:
  37. irc:
  38. channels:
  39. - "irc.freenode.org#stk"
  40. skip_join: false
  41. use_notice: true
  42. template:
  43. #- "[%{commit}: %{author}] %{message}"
  44. #- "%{build_url}"
  45. - "[%{repository}#%{branch} @%{commit}] %{author}): %{message}"
  46. - "Diff: %{compare_url}"
  47. - "Build: %{build_url}"