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-10-04 11:24:31 +02:00
|
|
|
- android-13
|
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-09-06 11:45:59 +02:00
|
|
|
- git submodule init
|
|
|
|
- git submodule update
|
2015-08-11 18:20:53 +02:00
|
|
|
script:
|
2015-08-20 07:28:00 +02:00
|
|
|
- sh gen-version.sh travis build
|
2016-09-14 11:16:34 +02:00
|
|
|
- sh gen-config.sh test
|
2016-01-22 10:09:43 +01:00
|
|
|
- python2 makepak.py xash-extras assets/extras.pak
|
2016-11-21 21:12:05 +01:00
|
|
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 SUPPORT_WEBP=false -j2 APP_CFLAGS="-w" APP_ABI="armeabi-v7a-hard"
|
2016-11-24 14:30:52 +01:00
|
|
|
- ant debug -Dtest.version=1
|
2016-11-21 21:12:05 +01:00
|
|
|
- cp bin/xashdroid-debug.apk xashdroid-armv7.apk
|
2016-11-24 21:08:03 +01:00
|
|
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 clean
|
2016-11-24 19:52:21 +01:00
|
|
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 SUPPORT_WEBP=false -j2 APP_CFLAGS="-w" APP_ABI="armeabi-v7a-hard" CFLAGS_OPT_ARM="-mthumb -mfpu=neon-vfpv4 -mcpu=cortex-a15 -ffast-math -pipe -mvectorize-with-neon-quad -DVECTORIZE_SINCOS -fPIC -DHAVE_EFFICIENT_UNALIGNED_ACCESS"
|
2016-11-24 21:08:03 +01:00
|
|
|
- ant debug -Dtest.version=1
|
|
|
|
- cp bin/xashdroid-debug.apk xashdroid-armv7-cortex-a7-a15.apk
|
2016-11-21 21:12:05 +01:00
|
|
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 SUPPORT_WEBP=false -j2 APP_CFLAGS="-w" APP_ABI="armeabi"
|
2016-11-24 14:30:52 +01:00
|
|
|
- ant debug -Dtest.version=1
|
2016-11-21 21:12:05 +01:00
|
|
|
- cp bin/xashdroid-debug.apk xashdroid-armv6.apk
|
|
|
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 SUPPORT_WEBP=false -j2 APP_CFLAGS="-w" APP_ABI="x86"
|
2016-11-24 14:30:52 +01:00
|
|
|
- ant debug -Dtest.version=1
|
2016-11-21 21:12:05 +01:00
|
|
|
- cp bin/xashdroid-debug.apk xashdroid-x86.apk
|
|
|
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 clean
|
|
|
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 -j2 APP_CFLAGS="-w" APP_ABI="armeabi-v7a-hard" CFLAGS_OPT_ARM="-mthumb -mfpu=vfpv3-d16 -mcpu=cortex-a9 -pipe -fPIC"
|
2016-11-24 14:30:52 +01:00
|
|
|
- ant debug -Dtest.version=1
|
2016-11-21 21:12:05 +01:00
|
|
|
- cp bin/xashdroid-debug.apk xashdroid-armv7-tegra2.apk
|
|
|
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 clean
|
|
|
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 -j2 APP_CFLAGS="-w" APP_ABI="armeabi" CFLAGS_OPT_ARMv5="-marm -march=armv5te -msoft-float -fPIC"
|
2016-11-24 14:30:52 +01:00
|
|
|
- ant debug -Dtest.version=1
|
2016-11-21 21:12:05 +01:00
|
|
|
- cp bin/xashdroid-debug.apk xashdroid-armv5.apk
|
|
|
|
|
|
|
|
|
|
|
|
after_script:
|
2016-11-24 07:36:00 +01:00
|
|
|
- sh travis-upload.sh *.apk
|
2017-03-24 23:28:49 +01:00
|
|
|
- sh travis-deploy.sh android-optimized *.apk
|