mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-23 10:20:08 +01:00
Conditional test version
This commit is contained in:
parent
bf245a5439
commit
b0a4b00eb0
10
.travis.yml
10
.travis.yml
@ -23,21 +23,21 @@ script:
|
|||||||
- sh gen-config.sh test
|
- sh gen-config.sh test
|
||||||
- python2 makepak.py xash-extras assets/extras.pak
|
- python2 makepak.py xash-extras assets/extras.pak
|
||||||
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 SUPPORT_WEBP=false -j2 APP_CFLAGS="-w" APP_ABI="armeabi-v7a-hard"
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 SUPPORT_WEBP=false -j2 APP_CFLAGS="-w" APP_ABI="armeabi-v7a-hard"
|
||||||
- ant debug
|
- ant debug -Dtest.version=travis
|
||||||
- cp bin/xashdroid-debug.apk xashdroid-armv7.apk
|
- cp bin/xashdroid-debug.apk xashdroid-armv7.apk
|
||||||
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 SUPPORT_WEBP=false -j2 APP_CFLAGS="-w" APP_ABI="armeabi"
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 SUPPORT_WEBP=false -j2 APP_CFLAGS="-w" APP_ABI="armeabi"
|
||||||
- ant debug
|
- ant debug -Dtest.version=travis
|
||||||
- cp bin/xashdroid-debug.apk xashdroid-armv6.apk
|
- 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"
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 SUPPORT_WEBP=false -j2 APP_CFLAGS="-w" APP_ABI="x86"
|
||||||
- ant debug
|
- ant debug -Dtest.version=travis
|
||||||
- cp bin/xashdroid-debug.apk xashdroid-x86.apk
|
- cp bin/xashdroid-debug.apk xashdroid-x86.apk
|
||||||
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 clean
|
- 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"
|
- 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"
|
||||||
- ant debug
|
- ant debug -Dtest.version=travis
|
||||||
- cp bin/xashdroid-debug.apk xashdroid-armv7-tegra2.apk
|
- cp bin/xashdroid-debug.apk xashdroid-armv7-tegra2.apk
|
||||||
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 clean
|
- 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"
|
- ndk-build NDK_TOOLCHAIN_VERSION=4.8 -j2 APP_CFLAGS="-w" APP_ABI="armeabi" CFLAGS_OPT_ARMv5="-marm -march=armv5te -msoft-float -fPIC"
|
||||||
- ant debug
|
- ant debug -Dtest.version=travis
|
||||||
- cp bin/xashdroid-debug.apk xashdroid-armv5.apk
|
- cp bin/xashdroid-debug.apk xashdroid-armv5.apk
|
||||||
|
|
||||||
|
|
||||||
|
13
build.xml
13
build.xml
@ -69,13 +69,18 @@
|
|||||||
<import file="custom_rules.xml" optional="true" />
|
<import file="custom_rules.xml" optional="true" />
|
||||||
|
|
||||||
<!-- allow the package name to be overridden when building -->
|
<!-- allow the package name to be overridden when building -->
|
||||||
<property name="override.package.name" value="in.celest.xash3d.hl"/>
|
|
||||||
<!-- Puts the project's resources into the output package file
|
<!-- Puts the project's resources into the output package file
|
||||||
This actually can create multiple resource package in case
|
This actually can create multiple resource package in case
|
||||||
Some custom apk with specific configuration have been
|
Some custom apk with specific configuration have been
|
||||||
declared in default.properties.
|
declared in default.properties.
|
||||||
-->
|
-->
|
||||||
<!-- Replaces the target in tools\ant\build.xml -->
|
<!-- Replaces the target in tools\ant\build.xml -->
|
||||||
|
|
||||||
|
<if>
|
||||||
|
<condition>
|
||||||
|
<isset property="test.version"/>
|
||||||
|
</condition>
|
||||||
|
<then>
|
||||||
<target name="-package-resources" depends="-crunch">
|
<target name="-package-resources" depends="-crunch">
|
||||||
<!-- this exec replicates the output of the aapt task in build.xml
|
<!-- this exec replicates the output of the aapt task in build.xml
|
||||||
-package-resources with the addition of a rename-manifest-package option. -->
|
-package-resources with the addition of a rename-manifest-package option. -->
|
||||||
@ -83,8 +88,10 @@ declared in default.properties.
|
|||||||
<arg value="package" />
|
<arg value="package" />
|
||||||
<arg value="-f" />
|
<arg value="-f" />
|
||||||
<arg value="--auto-add-overlay" />
|
<arg value="--auto-add-overlay" />
|
||||||
|
<arg value="--app-version-name" />
|
||||||
|
<arg value="${test.version}" />
|
||||||
<arg value="-M" />
|
<arg value="-M" />
|
||||||
<arg path="${basedir}/AndroidManifest.xml" />
|
<arg path="${basedir}/test/AndroidManifest.xml" />
|
||||||
<arg value="-S" />
|
<arg value="-S" />
|
||||||
<arg path="${basedir}/test/res" />
|
<arg path="${basedir}/test/res" />
|
||||||
<arg value="-A" />
|
<arg value="-A" />
|
||||||
@ -97,6 +104,8 @@ declared in default.properties.
|
|||||||
<arg value="in.celest.xash3d.hl.test" />
|
<arg value="in.celest.xash3d.hl.test" />
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
<!-- Import the actual build file.
|
<!-- Import the actual build file.
|
||||||
|
|
||||||
To customize existing targets, there are two options:
|
To customize existing targets, there are two options:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
\#!/bin/sh
|
||||||
|
|
||||||
# Upload travis generated APKs to the Transfer.sh and Yandex.Disk
|
# Upload travis generated APKs to the Transfer.sh and Yandex.Disk
|
||||||
|
|
||||||
@ -21,8 +21,8 @@ FILE_BASE=${FNAME%.*}
|
|||||||
FILE_EXT="${FNAME##*.}"
|
FILE_EXT="${FNAME##*.}"
|
||||||
OUTNAME=$PREFIX-$FILE_BASE-$POSTFIX.$FILE_EXT
|
OUTNAME=$PREFIX-$FILE_BASE-$POSTFIX.$FILE_EXT
|
||||||
echo $FNAME: `curl --upload-file $FNAME https://transfer.sh/$OUTNAME`
|
echo $FNAME: `curl --upload-file $FNAME https://transfer.sh/$OUTNAME`
|
||||||
curl -T $FNAME -u $YADISK_USERNAME:$YADISK_PASSWORD https://webdav.yandex.ru/XashTestVersions/$YADISKPATH/$OUTNAME
|
curl -T $FNAME -u $YADISK_USERNAME:$YADISK_PASSWORD https://webdav.yandex.ru/XashTestVersions/$YADISKPATH/$OUTNAME > /dev/null
|
||||||
curl -T xashdroid-armv7.apk -u $YADISK_USERNAME:$YADISK_PASSWORD https://webdav.yandex.ru/XashTestVersions/current-$FILE_BASE-$TRAVIS_BRANCH.$FILE_EXT
|
curl -T xashdroid-armv7.apk -u $YADISK_USERNAME:$YADISK_PASSWORD https://webdav.yandex.ru/XashTestVersions/current-$FILE_BASE-$TRAVIS_BRANCH.$FILE_EXT > /dev/null
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user