diff --git a/MANIFEST.in b/MANIFEST.in index 6cd365e1..a323c531 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -24,7 +24,7 @@ include docs/update.sh include examples/config.py include examples/fdroid-icon.png include examples/makebs.config.py -include tests/run-tests.sh +include tests/run-tests include wp-fdroid/AndroidManifest.xml include wp-fdroid/android-permissions.php include wp-fdroid/readme.txt diff --git a/jenkins-build b/jenkins-build index 81639626..7cc2b4be 100755 --- a/jenkins-build +++ b/jenkins-build @@ -39,7 +39,7 @@ cd $WORKSPACE/fdroidserver/getsig #------------------------------------------------------------------------------# # run local tests cd $WORKSPACE/tests -./run-tests.sh +./run-tests #------------------------------------------------------------------------------# @@ -59,7 +59,7 @@ python setup.py install # run tests in new pip+virtualenv install . $WORKSPACE/env/bin/activate -fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests.sh +fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests #------------------------------------------------------------------------------# diff --git a/tests/run-tests.sh b/tests/run-tests similarity index 89% rename from tests/run-tests.sh rename to tests/run-tests index c75a2f02..09e7c94b 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e set -x @@ -7,12 +7,10 @@ copy_apks_into_repo() { for f in `ls -1 ../../*/bin/*.apk`; do name=$(basename $(dirname `dirname $f`)) echo "name $name" - apk=${name}_`basename $f` + apk=`aapt d badging "$f" | sed -n "s,^package: name='\(.*\)' versionCode='\([0-9][0-9]*\)' .*,\1_\2.apk,p"` echo "apk $apk" - cp $f $1/repo/$apk + cp -f $f $1/repo/$apk done - # delete any 'unaligned' duplicates - rm -f $1/repo/*unaligned*.apk } if [ -z $WORKSPACE ]; then