.travis.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. language: cpp
  2. dist: trusty
  3. sudo: false
  4. cache: ccache
  5. matrix:
  6. include:
  7. - env: STATIC_CHECKS=yes
  8. os: linux
  9. compiler: clang
  10. - env: GODOT_TARGET=x11 TOOLS=yes
  11. os: linux
  12. compiler: gcc
  13. - env: GODOT_TARGET=x11 TOOLS=no
  14. os: linux
  15. compiler: clang
  16. #- env: GODOT_TARGET=windows TOOLS=yes
  17. # os: linux
  18. # compiler: gcc
  19. - env: GODOT_TARGET=osx TOOLS=yes
  20. os: osx
  21. compiler: clang
  22. #- env: GODOT_TARGET=android TOOLS=no
  23. # os: osx
  24. # compiler: clang
  25. #- env: GODOT_TARGET=iphone TOOLS=no
  26. # os: osx
  27. # compiler: clang
  28. addons:
  29. apt:
  30. sources:
  31. - ubuntu-toolchain-r-test
  32. - llvm-toolchain-trusty-3.9
  33. packages:
  34. - build-essential
  35. - scons
  36. - pkg-config
  37. - libx11-dev
  38. - libxcursor-dev
  39. - libasound2-dev
  40. - libfreetype6-dev
  41. - libgl1-mesa-dev
  42. - libglu1-mesa-dev
  43. - libssl-dev
  44. - libxinerama-dev
  45. - libxrandr-dev
  46. # For cross-compiling to Windows.
  47. #- binutils-mingw-w64-i686
  48. #- binutils-mingw-w64-x86-64
  49. #- gcc-mingw-w64-i686
  50. #- gcc-mingw-w64-x86-64
  51. #- g++-mingw-w64-i686
  52. #- g++-mingw-w64-x86-64
  53. #- mingw-w64
  54. # For style checks.
  55. - clang-format-3.9
  56. before_script:
  57. - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
  58. brew update; brew install scons ccache;
  59. export PATH="/usr/local/opt/ccache/libexec:$PATH";
  60. fi
  61. - if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$GODOT_TARGET" = "android" ]; then
  62. brew update; brew install -v android-sdk;
  63. brew install -v android-ndk | grep -v "inflating:" | grep -v "creating:";
  64. export ANDROID_HOME=/usr/local/opt/android-sdk; export ANDROID_NDK_ROOT=/usr/local/opt/android-ndk;
  65. fi
  66. script:
  67. - if [ "$STATIC_CHECKS" = "yes" ]; then
  68. sh ./misc/travis/clang-format.sh;
  69. else
  70. scons -j2 CC=$CC CXX=$CXX platform=$GODOT_TARGET TOOLS=$TOOLS verbose=yes progress=no;
  71. fi