.travis.yml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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.3
  53. - android-25
  54. - extra-android-m2repository
  55. jdk: oraclejdk8
  56. before_install:
  57. - wget http://dl.google.com/android/repository/android-ndk-$NDK_VERSION-linux-x86_64.zip
  58. - unzip android-ndk-$NDK_VERSION-linux-x86_64.zip > /dev/null
  59. - export ANDROID_NDK_HOME=`pwd`/android-ndk-$NDK_VERSION
  60. - export PATH=${PATH}:${ANDROID_NDK_HOME}
  61. script:
  62. - cd android
  63. - ./gradlew assembleRelease
  64. - mv app/build/outputs/apk/app-release.apk ../deploy/sdlpal-release.apk
  65. - cd ..
  66. - os: osx
  67. env: TARGET=iOS
  68. language: c
  69. script:
  70. - cd ios/SDLPal
  71. - xcodebuild ONLY_ACTIVE_ARCH=NO CODE_SIGNING_ALLOWED=NO
  72. - mkdir -p Payload
  73. - mv build/Release-iphoneos/SDLPal.app Payload
  74. - zip ../../deploy/sdlpal-impactor.ipa -r Payload
  75. - cd ../..
  76. - os: osx
  77. env: TARGET=macOS
  78. language: c
  79. script:
  80. - cd macos
  81. - xcodebuild
  82. - hdiutil create -srcfolder build/Release/Pal.app -volname "SDLPal" ../deploy/sdlpal-macos.dmg
  83. - #xcodebuild test -scheme PalTests #disabled since always fail in travis-ci
  84. - cd ..
  85. deploy:
  86. provider: releases
  87. api_key:
  88. secure: FFV8UBcz6GkeSoGRbrL9tnTpVqXoFjFK2QtW0Ml8YvvqaHhxOaIWs2nAabOGsW1mJop/QlpuUNw1TfLl7TokcUDgOHrFRdC8hVY7K1uSWMnt7m4ZRPatVybIkzgrnItHlnMrL4uJK2xXb6Jc5+cSrU5jRMcmTZjaOKLTBwF97+6AgqpdmKUCVYZJzQYg0Jn9GfaL1EOGl7ISt/VEgi/tKFzJvJVxJBU3NuKyxXlfEwkTiSOFuGoD5qWDjCE+aGxTR6RQefsADPIDfeU3TJHTJE/ORGy9gl+Y41JgU0Bfgipcqg1RSwNclclmxgi8lo/XNUiZAMTyQrXjByBWcvYovk+H4h9mbvJlrVSjI8Wxb5ICcYkhDVkNxtEXX7AsIk4yHiNTi1MAW0qJJKinaFxLmK2U3LGEK3DudXl/0eVRoQATmRcXLdBQezISt2CWpTktCxlQmtz/GsoHv0PcWdkJYL4qbbRrBRFj9++VjlnCI124YZnbVjC3+jtWN1Zluxynj0GDBY3r7EdLWWKZo5XnygPOZ8+uaTMYfqmTvQWPc5GRRRdVJowQFQhb48hzKyWYqsf8eyS3VuZ9b/DwES3dutOaX7sIL9Vkg3DlQYOEz938MB4VbTGizUUrBbrIP4Kz/+WOZ9pxM9X+qsgMYkw8FvHqn2TvCWxPDCgqq3zUWig=
  89. file_glob: true
  90. file: deploy/*
  91. skip_cleanup: true
  92. overwrite: true
  93. on:
  94. all_branches: true
  95. tags: true
  96. notifications:
  97. webhooks:
  98. urls:
  99. - https://webhooks.gitter.im/e/922838d6727e919df50e
  100. on_success: always # options: [always|never|change] default: always
  101. on_failure: always # options: [always|never|change] default: always
  102. on_start: never # options: [always|never|change] default: always