.travis.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Travis-CI configuration file for SuperTuxKart
  2. #
  3. # Configuration manual:
  4. # http://docs.travis-ci.com/user/build-configuration/
  5. #
  6. sudo: false
  7. language: cpp
  8. compiler:
  9. - gcc
  10. - clang
  11. matrix:
  12. fast_finish: true
  13. env:
  14. matrix:
  15. - BUILD_TYPE="Debug" SERVER_ONLY="OFF"
  16. - BUILD_TYPE="Debug" SERVER_ONLY="ON"
  17. - BUILD_TYPE="Release" SERVER_ONLY="OFF"
  18. - BUILD_TYPE="Release" SERVER_ONLY="ON"
  19. addons:
  20. apt:
  21. packages:
  22. - build-essential
  23. - cmake
  24. - libbluetooth-dev
  25. - libcurl4-gnutls-dev
  26. - libfreetype6-dev
  27. - libfribidi-dev
  28. - libgl1-mesa-dev
  29. - libjpeg-dev
  30. - libogg-dev
  31. - libopenal-dev
  32. - libpng-dev
  33. - libvorbis-dev
  34. - libxrandr-dev
  35. - mesa-common-dev
  36. - pkg-config
  37. - zlib1g-dev
  38. before_script:
  39. # Unfortunately using all threads crashes g++: "g++: internal compiler error: Killed (program cc1plus)"
  40. # Use half of the available threads, gcc is memory hungry
  41. - 'if [ ${CC} = "gcc" ]; then
  42. export THREADS=$((`nproc` / 2));
  43. else
  44. export THREADS=$((`nproc` + 1));
  45. fi'
  46. - echo "THREADS = $THREADS"
  47. - free -mt
  48. script:
  49. - mkdir "build"
  50. - cd "build"
  51. - cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSERVER_ONLY=$SERVER_ONLY -DCHECK_ASSETS=off -DBUILD_RECORDER=off
  52. - make VERBOSE=1 -j $THREADS
  53. notifications:
  54. irc:
  55. channels:
  56. - "irc.freenode.org#supertuxkart"
  57. skip_join: false
  58. use_notice: true
  59. template:
  60. #- "[%{commit}: %{author}] %{message}"
  61. #- "%{build_url}"
  62. - "[%{repository}#%{branch} @%{commit}] %{author}): %{message}"
  63. - "Diff: %{compare_url}"
  64. - "Build: %{build_url}"