mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-22 07:57:59 +00:00
Initial commit: Pezkuwi Wallet Android
Security hardened release: - Code obfuscation enabled (minifyEnabled=true, shrinkResources=true) - Sensitive files excluded (google-services.json, keystores) - Branch.io key moved to BuildConfig placeholder - Updated dependencies: OkHttp 4.12.0, Gson 2.10.1, BouncyCastle 1.77 - Comprehensive ProGuard rules for crypto wallet - Navigation 2.7.7, Lifecycle 2.7.0, ConstraintLayout 2.1.4
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
#!/usr/bin/env bash
|
||||
adb devices
|
||||
|
||||
# Install debug app
|
||||
adb -s emulator-5554 install app/debug/app-debug.apk
|
||||
|
||||
# Install instrumental tests
|
||||
adb -s emulator-5554 install app/androidTest/debug/app-debug-androidTest.apk
|
||||
|
||||
# Run tests
|
||||
adb logcat -c &&
|
||||
python - <<END
|
||||
import os
|
||||
import re
|
||||
import subprocess as sp
|
||||
import sys
|
||||
import threading
|
||||
import time
|
||||
|
||||
done = False
|
||||
def update():
|
||||
# prevent CI from killing the process for inactivity
|
||||
while not done:
|
||||
time.sleep(5)
|
||||
print ("Running...")
|
||||
t = threading.Thread(target=update)
|
||||
t.dameon = True
|
||||
t.start()
|
||||
def run():
|
||||
os.system('adb wait-for-device')
|
||||
p = sp.Popen('adb shell am instrument -w -m -e debug false -e class "io.novafoundation.nova.balances.BalancesIntegrationTest" io.novafoundation.nova.debug.test/io.qameta.allure.android.runners.AllureAndroidJUnitRunner',
|
||||
shell=True, stdout=sp.PIPE, stderr=sp.PIPE, stdin=sp.PIPE)
|
||||
return p.communicate()
|
||||
success = re.compile(r'OK \(\d+ tests\)')
|
||||
stdout, stderr = run()
|
||||
stdout = stdout.decode('ISO-8859-1')
|
||||
stderr = stderr.decode('ISO-8859-1')
|
||||
done = True
|
||||
print (stderr)
|
||||
print (stdout)
|
||||
if success.search(stderr + stdout):
|
||||
sys.exit(0)
|
||||
else:
|
||||
sys.exit(1) # make sure we fail if the tests fail
|
||||
END
|
||||
EXIT_CODE=$?
|
||||
adb logcat -d '*:E'
|
||||
|
||||
# Export results
|
||||
adb exec-out run-as io.novafoundation.nova.debug sh -c 'cd /data/data/io.novafoundation.nova.debug/files && tar cf - allure-results' > allure-results.tar
|
||||
|
||||
exit $EXIT_CODE
|
||||
Reference in New Issue
Block a user