Skip to content
Snippets Groups Projects
Verified Commit fd3c96c5 authored by Torsten Grote's avatar Torsten Grote
Browse files

Return exit code 1 when comparision fails

parent 1203ee3b
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -29,7 +29,7 @@ test_success:
test_failure:
stage: test
script:
- ! docker run ${TEST_IMAGE} ./reproduce.py release-1.0.3
- ! docker run ${TEST_IMAGE} ./reproduce.py release-1.0.3 && echo "Failed as expected"
release:
stage: release
......
......@@ -31,6 +31,9 @@ def main():
apk = os.path.join(REPO_DIR, APK_PATH)
if subprocess.call(['./verify-apk.py', reference_apk, apk]) == 0:
print("Version '%s' was built reproducible! :)" % tag)
sys.exit(0)
else:
sys.exit(1)
def prepare_repo(tag):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment