2015-08-11 17:22:39 +02:00
|
|
|
language: android
|
2015-08-11 15:44:12 +02:00
|
|
|
android:
|
|
|
|
components:
|
2015-08-11 16:34:25 +02:00
|
|
|
- platform-tools
|
2015-08-11 15:44:12 +02:00
|
|
|
- build-tools-21.1.1
|
2015-08-11 17:37:38 +02:00
|
|
|
- android-15
|
2015-08-11 15:44:12 +02:00
|
|
|
- extra-android-support
|
2015-08-11 16:34:25 +02:00
|
|
|
|
|
|
|
jdk: oraclejdk7
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|
2015-08-11 15:44:12 +02:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- wget http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin
|
2015-08-11 15:53:03 +02:00
|
|
|
- chmod +x android-ndk-r10e-linux-x86_64.bin && ./android-ndk-r10e-linux-x86_64.bin > /dev/null
|
2015-08-11 15:44:12 +02:00
|
|
|
- mv android-ndk-r10e android-ndk
|
|
|
|
- export PATH=`pwd`/android-ndk:`pwd`/android-sdk-linux/tools:`pwd`/android-sdk-linux/platform-tools:$PATH
|
2015-08-11 17:11:30 +02:00
|
|
|
- git clone -q --depth=1 https://github.com/SDLash3D/xash3d jni/src/Xash3D/xash3d
|
|
|
|
- git clone -q --depth=1 https://github.com/SDLash3D/halflife jni/src/HLSDK/halflife
|
|
|
|
- git clone -q --depth=1 https://github.com/SDLash3D/MobileTouchControls jni/src/MobileTouchControls/MobileTouchControls
|
|
|
|
- git clone -q --depth=1 https://github.com/SDLash3D/nanogl jni/src/NanoGL/nanogl
|
|
|
|
- git clone -q --depth=1 https://github.com/SDLash3D/XashXT jni/src/XashXT/XashXT
|
|
|
|
- git clone -q --depth=1 https://github.com/mittorn/SDL-mirror jni/src/SDL2/SDL-mirror
|
2015-08-11 17:37:38 +02:00
|
|
|
- sed -i -- s/android-8/android-15/g project.properties
|
2015-08-11 18:20:53 +02:00
|
|
|
script:
|
2015-08-20 07:28:00 +02:00
|
|
|
- sh gen-version.sh travis build
|
2015-08-22 02:53:18 +02:00
|
|
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 XASH_SDL=1 SUPPORT_WEBP=false -j2 APP_CFLAGS="-w" APP_ABI="armeabi-v7a-hard"
|
|
|
|
- ant debug
|
|
|
|
- cp bin/xashdroid-debug.apk xashdroid-armv7.apk
|
|
|
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 XASH_SDL=1 SUPPORT_WEBP=false -j2 APP_CFLAGS="-w" APP_ABI="armeabi"
|
|
|
|
- ant debug
|
|
|
|
- cp bin/xashdroid-debug.apk xashdroid-armv6.apk
|
|
|
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 XASH_SDL=1 SUPPORT_WEBP=false -j2 APP_CFLAGS="-w" APP_ABI="x86"
|
2015-08-11 18:20:53 +02:00
|
|
|
- ant debug
|
2015-08-22 02:53:18 +02:00
|
|
|
- cp bin/xashdroid-debug.apk xashdroid-x86.apk
|
2015-08-11 18:20:53 +02:00
|
|
|
after_script:
|
2015-08-22 02:53:18 +02:00
|
|
|
- curl --upload-file xashdroid-armv7.apk https://transfer.sh/xash3d-armv7-`date -u +%y-%m-%d_%H-%M`.apk
|
|
|
|
- curl --upload-file xashdroid-armv6.apk https://transfer.sh/xash3d-armv6-`date -u +%y-%m-%d_%H-%M`.apk
|
|
|
|
- curl --upload-file xashdroid-x86.apk https://transfer.sh/xash3d-x86-`date -u +%y-%m-%d_%H-%M`.apk
|
2015-08-23 19:02:07 +02:00
|
|
|
- curl -T xashdroid-armv7.apk -u $YADISK_USERNAME:$YADISK_PASSWORD https://webdav.yandex.ru/XashTestVersions/xashdroid-armv7-`date -u +%y-%m-%d_%H-%M`-`git rev-parse --short HEAD`.apk
|
|
|
|
- curl -T xashdroid-armv6.apk -u $YADISK_USERNAME:$YADISK_PASSWORD https://webdav.yandex.ru/XashTestVersions/xashdroid-armv6-`date -u +%y-%m-%d_%H-%M`-`git rev-parse --short HEAD`.apk
|
|
|
|
- curl -T xashdroid-x86.apk -u $YADISK_USERNAME:$YADISK_PASSWORD https://webdav.yandex.ru/XashTestVersions/xashdroid-x86-`date -u +%y-%m-%d_%H-%M`-`git rev-parse --short HEAD`.apk
|
|
|
|
|