.travis.yml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. - upx-ucl
  17. script:
  18. - cd unix
  19. - make
  20. - upx --best --lzma sdlpal
  21. - mv sdlpal ../deploy/sdlpal-linux
  22. - make clean
  23. - make check
  24. - cd ..
  25. - os: linux
  26. env: TARGET=MinGW32
  27. dist: trusty
  28. language: c
  29. addons:
  30. apt:
  31. packages:
  32. - binutils-mingw-w64-i686
  33. - gcc-mingw-w64-i686
  34. - g++-mingw-w64-i686
  35. - zip
  36. - upx-ucl
  37. before_install:
  38. - cd win32
  39. - wget http://libsdl.org/release/SDL2-devel-2.0.5-mingw.tar.gz
  40. - tar xvf SDL2-devel-2.0.5-mingw.tar.gz
  41. - sed -i "s@/usr/local/cross-tools@$(pwd)/SDL2-2.0.5@g" SDL2-2.0.5/i686-w64-mingw32/bin/sdl2-config
  42. - export PATH=$(pwd)/SDL2-2.0.5/i686-w64-mingw32/bin:$PATH
  43. - cd ..
  44. script:
  45. - cd win32
  46. - make HOST=i686-w64-mingw32-
  47. - i686-w64-mingw32-strip -s sdlpal.exe
  48. - upx --best --lzma sdlpal.exe
  49. - zip sdlpal-win32-mingw.zip sdlpal.exe
  50. - mv sdlpal-win32-mingw.zip ../deploy/
  51. - cd ..
  52. - os: linux
  53. env: TARGET=wii
  54. language: c
  55. before_install:
  56. - export DEVKITPRO=/home/travis/devkitPro
  57. - export DEVKITPPC=${DEVKITPRO}/devkitPPC
  58. - export PATH=$DEVKITPPC/bin:$PATH
  59. install:
  60. - export PUSHD="$(pwd)"
  61. - mkdir $DEVKITPRO
  62. - cd $DEVKITPRO
  63. - wget https://sourceforge.net/projects/devkitpro/files/devkitPPC/devkitPPC_r27-x86_64-linux.tar.bz2
  64. - tar xvf devkitPPC_r27-x86_64-linux.tar.bz2
  65. - mkdir libogc
  66. - cd libogc
  67. - wget https://sourceforge.net/projects/devkitpro/files/libogc/libogc-1.8.12.tar.bz2
  68. - tar xvf libogc-1.8.12.tar.bz2
  69. - wget https://sourceforge.net/projects/devkitpro/files/libfat/libfat-ogc-1.0.13.tar.bz2
  70. - tar xvf libfat-ogc-1.0.13.tar.bz2
  71. - cd ..
  72. - wget https://github.com/dborth/sdl-wii/releases/download/2013-10-28/SDL.Wii.10-28-2013.zip
  73. - unzip SDL.Wii.10-28-2013.zip
  74. - cd "${PUSHD}"
  75. script:
  76. - cd wii
  77. - make
  78. - tar cvjf ../deploy/sdlpal-wii.tar.bz2 icon.png meta.xml boot.dol
  79. - make clean
  80. - cd ..
  81. - os: linux
  82. env: TARGET=Android NDK_VERSION=r13b TERM=dumb
  83. android:
  84. components:
  85. - platform-tools
  86. - tools
  87. - build-tools-25.0.3
  88. - android-25
  89. - extra-android-m2repository
  90. jdk: oraclejdk8
  91. before_install:
  92. - wget http://dl.google.com/android/repository/android-ndk-$NDK_VERSION-linux-x86_64.zip
  93. - unzip android-ndk-$NDK_VERSION-linux-x86_64.zip > /dev/null
  94. - export ANDROID_NDK_HOME=`pwd`/android-ndk-$NDK_VERSION
  95. - export PATH=${PATH}:${ANDROID_NDK_HOME}
  96. script:
  97. - cd android
  98. - ./gradlew assembleRelease
  99. - cd ..
  100. - jarsigner -storetype pkcs12 -keystore winrt/SDLPal.UWP/SDLPal_TemporaryKey.pfx -sigalg SHA1withRSA -digestalg SHA1 -signedjar deploy/sdlpal-release.apk -storepass "" android/app/build/outputs/apk/app-release-unsigned.apk 5f85e55b-6e81-4b08-ac2d-c51f3dae22ae
  101. - os: osx
  102. osx_image: xcode8.3
  103. env: TARGET=iOS
  104. language: c
  105. script:
  106. - cd ios/SDLPal
  107. - pod install
  108. - xcodebuild -workspace SDLPal.xcworkspace -scheme SDLPal ONLY_ACTIVE_ARCH=NO CODE_SIGNING_ALLOWED=NO -configuration Release CONFIGURATION_BUILD_DIR=/tmp/sdlpal-build
  109. - mkdir -p Payload
  110. - mv /tmp/sdlpal-build/SDLPal.app Payload
  111. - zip ../../deploy/sdlpal-impactor.ipa -r Payload
  112. - cd ../..
  113. - os: osx
  114. osx_image: xcode8.3
  115. env: TARGET=macOS
  116. language: c
  117. script:
  118. - cd macos
  119. - xcodebuild -project Pal.xcodeproj -configuration Release
  120. - hdiutil create -srcfolder build/Release/Pal.app -volname "SDLPal" ../deploy/sdlpal-macos.dmg
  121. - #xcodebuild test -scheme PalTests #disabled since always fail in travis-ci
  122. - cd ..
  123. deploy:
  124. provider: releases
  125. api_key:
  126. secure: FFV8UBcz6GkeSoGRbrL9tnTpVqXoFjFK2QtW0Ml8YvvqaHhxOaIWs2nAabOGsW1mJop/QlpuUNw1TfLl7TokcUDgOHrFRdC8hVY7K1uSWMnt7m4ZRPatVybIkzgrnItHlnMrL4uJK2xXb6Jc5+cSrU5jRMcmTZjaOKLTBwF97+6AgqpdmKUCVYZJzQYg0Jn9GfaL1EOGl7ISt/VEgi/tKFzJvJVxJBU3NuKyxXlfEwkTiSOFuGoD5qWDjCE+aGxTR6RQefsADPIDfeU3TJHTJE/ORGy9gl+Y41JgU0Bfgipcqg1RSwNclclmxgi8lo/XNUiZAMTyQrXjByBWcvYovk+H4h9mbvJlrVSjI8Wxb5ICcYkhDVkNxtEXX7AsIk4yHiNTi1MAW0qJJKinaFxLmK2U3LGEK3DudXl/0eVRoQATmRcXLdBQezISt2CWpTktCxlQmtz/GsoHv0PcWdkJYL4qbbRrBRFj9++VjlnCI124YZnbVjC3+jtWN1Zluxynj0GDBY3r7EdLWWKZo5XnygPOZ8+uaTMYfqmTvQWPc5GRRRdVJowQFQhb48hzKyWYqsf8eyS3VuZ9b/DwES3dutOaX7sIL9Vkg3DlQYOEz938MB4VbTGizUUrBbrIP4Kz/+WOZ9pxM9X+qsgMYkw8FvHqn2TvCWxPDCgqq3zUWig=
  127. file_glob: true
  128. file: deploy/*
  129. skip_cleanup: true
  130. overwrite: true
  131. on:
  132. all_branches: true
  133. tags: true
  134. notifications:
  135. webhooks:
  136. urls:
  137. - https://webhooks.gitter.im/e/922838d6727e919df50e
  138. on_success: always # options: [always|never|change] default: always
  139. on_failure: always # options: [always|never|change] default: always
  140. on_start: never # options: [always|never|change] default: always