.travis.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # Travis-CI configuration file for SuperTuxKart
  2. #
  3. # Configuration manual:
  4. # http://docs.travis-ci.com/user/build-configuration/
  5. #
  6. # Heavily borrowed from SuperTuxKart's travis.yml.
  7. #
  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
  11. #
  12. language: cpp
  13. compiler:
  14. - gcc
  15. - clang
  16. matrix:
  17. fast_finish: true
  18. sudo: false
  19. env:
  20. global:
  21. # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
  22. # via the "travis encrypt" command using the project repo's public key
  23. - secure: "eVEyzIVjDlB16EPkXmj74tyF9pgX34kpgvBUMXJJ+hduuPwaGC6vl8T164fNQUIua2Z2/PqxmTLJRR3n5Bbkdf859NdX+4JUzc3SoFEKlgcLMYnOQeuimUAiMKxe4vmC4sub5LZVFsp9ORzVYkXgiMBnxiD5GuYxvZPy1lCaH9E="
  24. - CMAKE_VERSION=3.3.1
  25. matrix:
  26. - BUILD_TYPE="Debug"
  27. - BUILD_TYPE="Release"
  28. before_install:
  29. # CMake
  30. - wget http://www.cmake.org/files/v3.3/cmake-$CMAKE_VERSION.tar.gz -O - | tar xz
  31. - (cd cmake-$CMAKE_VERSION && cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/cmake . && make -j3 && make install)
  32. script:
  33. # Clean from previous Travis build
  34. - git clean -f
  35. # Then build:
  36. - mkdir "build-$BUILD_TYPE"
  37. - cd "build-$BUILD_TYPE"
  38. - $HOME/cmake/bin/cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DWARNINGS=ON -DWERROR=ON
  39. - make VERBOSE=1 -j3
  40. addons:
  41. coverity_scan:
  42. project:
  43. name: "SuperTux/supertux"
  44. description: "Build submitted via Travis CI"
  45. notification_email: supertux-commit@lists.lethargik.org
  46. build_command_prepend: "cmake . && make clean"
  47. build_command: "make -j 3"
  48. branch_pattern: coverity_scan
  49. apt:
  50. sources:
  51. - ubuntu-toolchain-r-test
  52. - ppa:zoogie/sdl2-snapshots
  53. packages:
  54. - cmake
  55. - build-essential
  56. # Current gcc that supports C++ 11 features
  57. - libstdc++-4.9-dev
  58. - g++4.9
  59. - gcc-4.9
  60. - libogg-dev
  61. - libvorbis-dev
  62. - libphysfs-dev
  63. - libglew-dev
  64. - libopenal-dev
  65. - libboost-all-dev
  66. - libsdl2-2.0-0
  67. - libsdl2-dev
  68. notifications:
  69. email:
  70. - supertux-commit@lists.lethargik.org