mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Upload verify artifacts on failure
This commit is contained in:
parent
c2ff694004
commit
94b880c4dc
@ -66,8 +66,9 @@ verifysanity_beta_testflight:
|
||||
environment:
|
||||
name: testflight_llc
|
||||
artifacts:
|
||||
when: on_failure
|
||||
paths:
|
||||
- build/artifacts
|
||||
- build/verifysanity_artifacts
|
||||
expire_in: 1 week
|
||||
|
||||
verify_beta_testflight:
|
||||
@ -83,6 +84,7 @@ verify_beta_testflight:
|
||||
environment:
|
||||
name: testflight_llc
|
||||
artifacts:
|
||||
when: on_failure
|
||||
paths:
|
||||
- build/artifacts
|
||||
- build/verify_artifacts
|
||||
expire_in: 1 week
|
||||
|
@ -13,8 +13,10 @@ fi
|
||||
|
||||
if [ "$MODE" == "cached" ]; then
|
||||
BUCK_HTTP_CACHE="$BUCK_HTTP_CACHE"
|
||||
ERROR_OUTPUT_PATH="build/verifysanity_artifacts"
|
||||
elif [ "$MODE" == "full" ]; then
|
||||
BUCK_HTTP_CACHE=""
|
||||
ERROR_OUTPUT_PATH="build/verify_artifacts"
|
||||
else
|
||||
echo "Unknown mode $MODE"
|
||||
exit 1
|
||||
@ -41,6 +43,11 @@ mv "$IPA_PATH" "$VERIFY_PATH"
|
||||
BUCK_HTTP_CACHE="$BUCK_HTTP_CACHE" sh buildbox/build-telegram.sh verify
|
||||
|
||||
python3 tools/ipadiff.py "$IPA_PATH" "$VERIFY_PATH"
|
||||
retVal=$?
|
||||
if [ $retVal -ne 0 ]; then
|
||||
mkdir -p "$ERROR_OUTPUT_PATH"
|
||||
cp "$IPA_PATH" "$ERROR_OUTPUT_PATH"/
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# No need to upload artifacts if the output matches previous step
|
||||
rm -rf "$OUTPUT_PATH"
|
||||
|
Loading…
x
Reference in New Issue
Block a user