.travis.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. language: cpp
  2. # OS config, depends on actual 'os' in build matrix
  3. dist: trusty
  4. sudo: false
  5. env:
  6. global:
  7. - SCONS_CACHE=$HOME/.scons_cache
  8. - SCONS_CACHE_LIMIT=1024
  9. - OPTIONS="debug_symbols=no verbose=yes progress=no gdnative_wrapper=yes"
  10. - secure: "uch9QszCgsl1qVbuzY41P7S2hWL2IiNFV4SbAYRCdi0oJ9MIu+pVyrQdpf3+jG4rH6j4Rffl+sN17Zz4dIDDioFL1JwqyCqyCyswR8uACC0Rr8gr4Mi3+HIRbv+2s2P4cIQq41JM8FJe84k9jLEMGCGh69w+ibCWoWs74CokYVA="
  11. cache:
  12. directories:
  13. - $SCONS_CACHE
  14. matrix:
  15. include:
  16. - env: STATIC_CHECKS=yes
  17. os: linux
  18. compiler: gcc
  19. addons:
  20. apt:
  21. sources:
  22. - llvm-toolchain-trusty-6.0
  23. - ubuntu-toolchain-r-test
  24. packages:
  25. - clang-format-6.0
  26. - libstdc++6 # >= 4.9 needed for clang-format-6.0
  27. - env: PLATFORM=x11 TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-mono-gcc EXTRA_ARGS="module_mono_enabled=yes mono_glue=no werror=yes"
  28. os: linux
  29. compiler: gcc
  30. addons:
  31. apt:
  32. sources:
  33. - mono
  34. packages:
  35. - &linux_deps [libasound2-dev, libfreetype6-dev, libgl1-mesa-dev, libglu1-mesa-dev, libx11-dev, libxcursor-dev, libxi-dev, libxinerama-dev, libxrandr-dev]
  36. - &linux_mono_deps [mono-devel, msbuild, nuget]
  37. coverity_scan:
  38. project:
  39. name: "godotengine/godot"
  40. description: "Godot Engine Coverity scans"
  41. notification_email: coverity@godotengine.org
  42. build_command_prepend: ""
  43. build_command: "scons p=x11 -j2 $OPTIONS"
  44. branch_pattern: coverity_scan
  45. - env: PLATFORM=x11 TOOLS=no TARGET=release CACHE_NAME=${PLATFORM}-clang EXTRA_ARGS="werror=yes"
  46. os: linux
  47. compiler: clang
  48. addons:
  49. apt:
  50. packages:
  51. - *linux_deps
  52. - env: PLATFORM=android TOOLS=no TARGET=release_debug CACHE_NAME=${PLATFORM}-clang EXTRA_ARGS="werror=yes"
  53. os: linux
  54. compiler: clang
  55. - env: PLATFORM=osx TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-clang
  56. os: osx
  57. compiler: clang
  58. - env: PLATFORM=iphone TOOLS=no TARGET=debug CACHE_NAME=${PLATFORM}-clang
  59. os: osx
  60. compiler: clang
  61. - env: PLATFORM=server TOOLS=yes TARGET=release_debug CACHE_NAME=${PLATFORM}-tools-gcc
  62. os: linux
  63. compiler: gcc
  64. addons:
  65. apt:
  66. packages:
  67. - *linux_deps
  68. before_install:
  69. - if [ "$STATIC_CHECKS" = "yes" ]; then
  70. unset SCONS_CACHE;
  71. fi
  72. install:
  73. - if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$PLATFORM" = "android" ]; then
  74. misc/travis/android-tools-linux.sh;
  75. fi
  76. - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
  77. misc/travis/scons-local-osx.sh;
  78. fi
  79. - if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$PLATFORM" = "android" ]; then
  80. misc/travis/android-tools-osx.sh;
  81. fi
  82. before_script:
  83. - if [ "$PLATFORM" = "android" ]; then
  84. export ANDROID_HOME=$TRAVIS_BUILD_DIR/godot-dev/build-tools/android-sdk;
  85. export ANDROID_NDK_ROOT=$TRAVIS_BUILD_DIR/godot-dev/build-tools/android-ndk;
  86. fi
  87. script:
  88. - if [ "$STATIC_CHECKS" = "yes" ]; then
  89. sh ./misc/travis/clang-format.sh;
  90. else
  91. scons -j2 CC=$CC CXX=$CXX platform=$PLATFORM tools=$TOOLS target=$TARGET $EXTRA_ARGS $OPTIONS;
  92. fi