.travis.yml 5.5 KB

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