.travis.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. language: android
  2. before_script:
  3. - mkdir deploy
  4. matrix:
  5. fast_finish: true
  6. include:
  7. - os: linux
  8. env: TARGET=Linux
  9. dist: trusty
  10. language: c
  11. addons:
  12. apt:
  13. packages:
  14. - libsdl2-dev
  15. - libfltk1.3-dev
  16. script:
  17. - cd unix
  18. - make
  19. - cp sdlpal ../deploy
  20. - make clean
  21. - make check
  22. - cd ..
  23. - os: linux
  24. env: TARGET=MinGW32
  25. dist: trusty
  26. language: c
  27. addons:
  28. apt:
  29. packages:
  30. - binutils-mingw-w64-i686
  31. - gcc-mingw-w64-i686
  32. - g++-mingw-w64-i686
  33. before_install:
  34. - cd win32
  35. - wget http://libsdl.org/release/SDL2-devel-2.0.5-mingw.tar.gz
  36. - tar xvf SDL2-devel-2.0.5-mingw.tar.gz
  37. - sed -i "s@/usr/local/cross-tools@$(pwd)/SDL2-2.0.5@g" SDL2-2.0.5/i686-w64-mingw32/bin/sdl2-config
  38. - export PATH=$(pwd)/SDL2-2.0.5/i686-w64-mingw32/bin:$PATH
  39. - cd ..
  40. script:
  41. - cd win32
  42. - make HOST=i686-w64-mingw32-
  43. - i686-w64-mingw32-strip sdlpal.exe
  44. - cp sdlpal.exe ../deploy/sdlpal-mingw.exe
  45. - cd ..
  46. - os: linux
  47. env: TARGET=Android NDK_VERSION=r13b TERM=dumb
  48. android:
  49. components:
  50. - platform-tools
  51. - tools
  52. - build-tools-25.0.2
  53. - android-24
  54. jdk: oraclejdk8
  55. before_install:
  56. - wget http://dl.google.com/android/repository/android-ndk-$NDK_VERSION-linux-x86_64.zip
  57. - unzip android-ndk-$NDK_VERSION-linux-x86_64.zip > /dev/null
  58. - export ANDROID_NDK_HOME=`pwd`/android-ndk-$NDK_VERSION
  59. - export PATH=${PATH}:${ANDROID_NDK_HOME}
  60. script:
  61. - cd android
  62. - ./gradlew assembleDebug
  63. - mv app/build/outputs/apk/app-debug.apk ../deploy/sdlpal-debug.apk
  64. - cd ..
  65. - os: osx
  66. env: TARGET=iOS
  67. language: c
  68. script:
  69. - cd ios/SDLPal
  70. - xcodebuild ONLY_ACTIVE_ARCH=NO CODE_SIGNING_ALLOWED=NO
  71. - mkdir -p Payload
  72. - mv build/Release-iphoneos/SDLPal.app Payload
  73. - zip ../../deploy/sdlpal-impactor.ipa -r Payload
  74. - cd ../..
  75. - os: osx
  76. env: TARGET=macOS
  77. language: c
  78. script:
  79. - cd macos
  80. - xcodebuild
  81. - hdiutil create -srcfolder build/Release/Pal.app -volname "SDLPal" ../deploy/sdlpal-macos.dmg
  82. - #xcodebuild test -scheme PalTests #disabled since always fail in travis-ci
  83. - cd ..
  84. deploy:
  85. provider: releases
  86. api_key:
  87. secure: FFV8UBcz6GkeSoGRbrL9tnTpVqXoFjFK2QtW0Ml8YvvqaHhxOaIWs2nAabOGsW1mJop/QlpuUNw1TfLl7TokcUDgOHrFRdC8hVY7K1uSWMnt7m4ZRPatVybIkzgrnItHlnMrL4uJK2xXb6Jc5+cSrU5jRMcmTZjaOKLTBwF97+6AgqpdmKUCVYZJzQYg0Jn9GfaL1EOGl7ISt/VEgi/tKFzJvJVxJBU3NuKyxXlfEwkTiSOFuGoD5qWDjCE+aGxTR6RQefsADPIDfeU3TJHTJE/ORGy9gl+Y41JgU0Bfgipcqg1RSwNclclmxgi8lo/XNUiZAMTyQrXjByBWcvYovk+H4h9mbvJlrVSjI8Wxb5ICcYkhDVkNxtEXX7AsIk4yHiNTi1MAW0qJJKinaFxLmK2U3LGEK3DudXl/0eVRoQATmRcXLdBQezISt2CWpTktCxlQmtz/GsoHv0PcWdkJYL4qbbRrBRFj9++VjlnCI124YZnbVjC3+jtWN1Zluxynj0GDBY3r7EdLWWKZo5XnygPOZ8+uaTMYfqmTvQWPc5GRRRdVJowQFQhb48hzKyWYqsf8eyS3VuZ9b/DwES3dutOaX7sIL9Vkg3DlQYOEz938MB4VbTGizUUrBbrIP4Kz/+WOZ9pxM9X+qsgMYkw8FvHqn2TvCWxPDCgqq3zUWig=
  88. file_glob: true
  89. file: deploy/*
  90. skip_cleanup: true
  91. overwrite: true
  92. on:
  93. all_branches: true
  94. tags: true
  95. notifications:
  96. webhooks:
  97. urls:
  98. - https://webhooks.gitter.im/e/922838d6727e919df50e
  99. on_success: always # options: [always|never|change] default: always
  100. on_failure: always # options: [always|never|change] default: always
  101. on_start: never # options: [always|never|change] default: always