1
0
Fork 0

fix: dex error on UI test job

master
Richard Pappalardo 2019-08-28 17:02:17 -07:00 committed by Jeff Boek
parent bf5b0e5cda
commit ab57bfd46f
5 changed files with 15 additions and 25 deletions

View File

@ -22,6 +22,10 @@ android {
consumerProguardFiles 'proguard-rules.pro' consumerProguardFiles 'proguard-rules.pro'
} }
} }
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
} }
androidExtensions { androidExtensions {

View File

@ -26,10 +26,10 @@ display_help() {
echo echo
echo "Examples:" echo "Examples:"
echo "To run UI tests on ARM device shard (1 test / shard)" echo "To run UI tests on ARM device shard (1 test / shard)"
echo "$ ui-test.sh arm -1" echo "$ ui-test.sh arm64-v8a -1"
echo echo
echo "To run UI tests on X86 device (on 3 shards)" echo "To run UI tests on X86 device (on 3 shards)"
echo "$ ui-test.sh feature x86 3" echo "$ ui-test.sh x86 3"
echo echo
} }
@ -40,7 +40,7 @@ if [[ $# -lt 1 ]]; then
exit 1 exit 1
fi fi
device_type="$1" # arm | x86 device_type="$1" # arm64-v8a | armeabi-v7a | x86_64 | x86
if [[ ! -z "$2" ]]; then if [[ ! -z "$2" ]]; then
num_shards=$2 num_shards=$2
fi fi
@ -68,34 +68,20 @@ gcloud auth activate-service-account --key-file "$GOOGLE_APPLICATION_CREDENTIALS
echo echo
echo echo
# From now on disable exiting on error. If the tests fail we want to continue # Disable exiting on error. If the tests fail we want to continue
# and try to download the artifacts. We will exit with the actual error code later. # and try to download the artifacts. We will exit with the actual error code later.
set +e set +e
APK_APP="${PATH_APK}/app-geckoNightly-${deviceType,,}-debug.apk" if [[ "${device_type}" =~ ^(arm64-v8a|armeabi-v7a|x86_64|x86)$ ]]; then
if [[ "${device_type,,}" == "aarch64" ]] APK_APP="${PATH_APK}/app-geckoNightly-${device_type}-debug.apk"
then flank_template="${PATH_TEST}/flank-${device_type}.yml"
flank_template="${PATH_TEST}/flank-aarch64.yml" echo "device_type: ${device_type}"
APK_APP="${PATH_APK}/app-geckoNightly-arm64-v8a-debug.apk"
elif [[ "${device_type,,}" == "arm" ]]
then
flank_template="${PATH_TEST}/flank-arm.yml"
APK_APP="${PATH_APK}/app-geckoNightly-armeabi-v7a-debug.apk"
elif [[ "${device_type,,}" == "x86_64" ]]
then
flank_template="${PATH_TEST}/flank-x86-64.yml"
APK_APP="${PATH_APK}/app-geckoNightly-x86_64-debug.apk"
elif [[ "${device_type,,}" == "x86" ]]
then
flank_template="${PATH_TEST}/flank-x86.yml"
APK_APP="${PATH_APK}/app-geckoNightly-x86-debug.apk"
else else
echo "NOT FOUND" echo "NOT FOUND"
exitcode=1 exitcode=1
fi fi
APK_TEST="./app/build/outputs/apk/androidTest/debug/app-geckoNightly-debug-androidTest.apk" APK_TEST="./app/build/outputs/apk/androidTest/geckoNightly/debug/app-geckoNightly-debug-androidTest.apk"
ls -la ./app/build/outputs/apk/androidTest/debug
# function to exit script with exit code from test run. # function to exit script with exit code from test run.
# (Only 0 if all test executions passed) # (Only 0 if all test executions passed)

View File

@ -183,8 +183,8 @@ class TaskBuilder(object):
) )
test_commands = ( test_commands = (
'automation/taskcluster/androidTest/ui-test.sh aarch64 -1', 'automation/taskcluster/androidTest/ui-test.sh arm64-v8a -1',
'automation/taskcluster/androidTest/ui-test.sh arm -1', 'automation/taskcluster/androidTest/ui-test.sh armeabi-v7a -1',
) )
command = ' && '.join( command = ' && '.join(