Return exit code 1 when comparision fails

parent 1203ee3b
Pipeline #1556 failed with stages
in 21 minutes and 48 seconds
......@@ -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):
......
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