.travis.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. before_script:
  25. - export THREADS=`nproc`
  26. # Unfortunately using all threads crashes g++: "g++: internal compiler error: Killed (program cc1plus)"
  27. - export THREADS=4
  28. - echo "THREADS = $THREADS"
  29. script:
  30. # First a debug build:
  31. - mkdir build-debug
  32. - cd build-debug
  33. - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCHECK_ASSETS=off
  34. - make VERBOSE=1 -j $THREADS
  35. # Then a release build:
  36. - cd ..
  37. - mkdir build-release
  38. - cd build-release
  39. - cmake .. -DCMAKE_BUILD_TYPE=Release -DCHECK_ASSETS=off
  40. - make VERBOSE=1 -j $THREADS
  41. notifications:
  42. irc:
  43. channels:
  44. - "irc.freenode.org#stk"
  45. skip_join: false
  46. use_notice: true
  47. template:
  48. #- "[%{commit}: %{author}] %{message}"
  49. #- "%{build_url}"
  50. - "[%{repository}#%{branch} @%{commit}] %{author}): %{message}"
  51. - "Diff: %{compare_url}"
  52. - "Build: %{build_url}"