Commit 9da4de68 authored by Torsten Grote's avatar Torsten Grote

DO NOT MERGE test AndroidX build

parent 2eae1e69
......@@ -30,7 +30,7 @@ test_success:
script:
# Consider adding the cap and the device directly to the CI config
# https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runners-docker-section
- docker run --cap-add SYS_ADMIN --device /dev/fuse ${TEST_IMAGE} ./reproduce.py release-1.1.7
- docker run --cap-add SYS_ADMIN --device /dev/fuse ${TEST_IMAGE} ./reproduce.py AndroidX
except:
- triggers
......
......@@ -22,10 +22,12 @@ def main():
tag = prepare_repo(tag)
# download reference binary (before building to detect missing file early on)
version = tag.split('-')[1]
url = REFERENCE_URL % version
reference_apk = "briar-%s.apk" % version
check_call(['wget', '--no-verbose', url, '-O', reference_apk])
# version = tag.split('-')[1]
# url = REFERENCE_URL % version
# reference_apk = "briar-%s.apk" % version
# check_call(['wget', '--no-verbose', url, '-O', reference_apk])
version = "1.2.0"
reference_apk = "briar-1.2.0.apk"
# use non-deterministic file system for building the app to detect issues
if not os.path.exists(BUILD_DIR):
......@@ -37,6 +39,9 @@ def main():
# check if both APKs match
apk = os.path.join(BUILD_DIR, APK_PATH if version >= "1.1.0" else OLD_APK_PATH)
check_call(["sha256sum", apk])
if call(['./verify-apk.py', reference_apk, apk]) == 0:
print("Version '%s' was built reproducible! :)" % tag)
sys.exit(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment