mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Update CI
This commit is contained in:
parent
29aff4a8a6
commit
2e3bdad154
@ -28,6 +28,24 @@ internal:
|
|||||||
- build/artifacts
|
- build/artifacts
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
||||||
|
appstore_development:
|
||||||
|
tags:
|
||||||
|
- ios_internal
|
||||||
|
stage: build
|
||||||
|
only:
|
||||||
|
- appstore-development
|
||||||
|
except:
|
||||||
|
- tags
|
||||||
|
script:
|
||||||
|
- bash buildbox/build-telegram.sh appstore-development
|
||||||
|
- bash buildbox/deploy-telegram.sh appstore-development
|
||||||
|
environment:
|
||||||
|
name: appstore-development
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- build/artifacts/Telegram.DSYMs.zip
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
experimental_i:
|
experimental_i:
|
||||||
tags:
|
tags:
|
||||||
- ios_internal
|
- ios_internal
|
||||||
|
@ -59,7 +59,7 @@ BUILD_CONFIGURATION="$1"
|
|||||||
|
|
||||||
if [ "$BUILD_CONFIGURATION" == "hockeyapp" ] || [ "$BUILD_CONFIGURATION" == "appcenter-experimental" ] || [ "$BUILD_CONFIGURATION" == "appcenter-experimental-2" ]; then
|
if [ "$BUILD_CONFIGURATION" == "hockeyapp" ] || [ "$BUILD_CONFIGURATION" == "appcenter-experimental" ] || [ "$BUILD_CONFIGURATION" == "appcenter-experimental-2" ]; then
|
||||||
CODESIGNING_SUBPATH="$BUILDBOX_DIR/transient-data/telegram-codesigning/codesigning"
|
CODESIGNING_SUBPATH="$BUILDBOX_DIR/transient-data/telegram-codesigning/codesigning"
|
||||||
elif [ "$BUILD_CONFIGURATION" == "appstore" ]; then
|
elif [ "$BUILD_CONFIGURATION" == "appstore" ] || [ "$BUILD_CONFIGURATION" == "appstore-development" ]; then
|
||||||
CODESIGNING_SUBPATH="$BUILDBOX_DIR/transient-data/telegram-codesigning/codesigning"
|
CODESIGNING_SUBPATH="$BUILDBOX_DIR/transient-data/telegram-codesigning/codesigning"
|
||||||
elif [ "$BUILD_CONFIGURATION" == "verify" ]; then
|
elif [ "$BUILD_CONFIGURATION" == "verify" ]; then
|
||||||
CODESIGNING_SUBPATH="build-system/fake-codesigning"
|
CODESIGNING_SUBPATH="build-system/fake-codesigning"
|
||||||
@ -88,7 +88,7 @@ fi
|
|||||||
|
|
||||||
BASE_DIR=$(pwd)
|
BASE_DIR=$(pwd)
|
||||||
|
|
||||||
if [ "$BUILD_CONFIGURATION" == "hockeyapp" ] || [ "$BUILD_CONFIGURATION" == "appcenter-experimental" ] || [ "$BUILD_CONFIGURATION" == "appcenter-experimental-2" ] || [ "$BUILD_CONFIGURATION" == "appstore" ]; then
|
if [ "$BUILD_CONFIGURATION" == "hockeyapp" ] || [ "$BUILD_CONFIGURATION" == "appcenter-experimental" ] || [ "$BUILD_CONFIGURATION" == "appcenter-experimental-2" ] || [ "$BUILD_CONFIGURATION" == "appstore" ] || [ "$BUILD_CONFIGURATION" == "appstore-development" ]; then
|
||||||
if [ ! `which generate-configuration.sh` ]; then
|
if [ ! `which generate-configuration.sh` ]; then
|
||||||
echo "generate-configuration.sh not found in PATH $PATH"
|
echo "generate-configuration.sh not found in PATH $PATH"
|
||||||
exit 1
|
exit 1
|
||||||
@ -106,6 +106,10 @@ if [ "$BUILD_CONFIGURATION" == "hockeyapp" ] || [ "$BUILD_CONFIGURATION" == "app
|
|||||||
generate-configuration.sh appstore release "$BASE_DIR/$BUILDBOX_DIR/transient-data/telegram-codesigning" "$BASE_DIR/$BUILDBOX_DIR/transient-data/build-configuration"
|
generate-configuration.sh appstore release "$BASE_DIR/$BUILDBOX_DIR/transient-data/telegram-codesigning" "$BASE_DIR/$BUILDBOX_DIR/transient-data/build-configuration"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"appstore-development")
|
||||||
|
generate-configuration.sh appstore development "$BASE_DIR/$BUILDBOX_DIR/transient-data/telegram-codesigning" "$BASE_DIR/$BUILDBOX_DIR/transient-data/build-configuration"
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Unknown build configuration $BUILD_CONFIGURATION"
|
echo "Unknown build configuration $BUILD_CONFIGURATION"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -38,7 +38,7 @@ else
|
|||||||
BUILD_NUMBER="$2"
|
BUILD_NUMBER="$2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CONFIGURATION" == "hockeyapp" ] || [ "$CONFIGURATION" == "appcenter-experimental" ] || [ "$CONFIGURATION" == "appcenter-experimental-2" ]; then
|
if [ "$CONFIGURATION" == "hockeyapp" ] || [ "$CONFIGURATION" == "appcenter-experimental" ] || [ "$CONFIGURATION" == "appcenter-experimental-2" ] || [ "$CONFIGURATION" == "appstore-development" ]; then
|
||||||
FASTLANE_PASSWORD=""
|
FASTLANE_PASSWORD=""
|
||||||
FASTLANE_ITC_TEAM_NAME=""
|
FASTLANE_ITC_TEAM_NAME=""
|
||||||
elif [ "$CONFIGURATION" == "appstore" ]; then
|
elif [ "$CONFIGURATION" == "appstore" ]; then
|
||||||
@ -69,6 +69,6 @@ if [ "$1" == "appstore" ]; then
|
|||||||
FASTLANE_PASSWORD="$FASTLANE_PASSWORD" xcrun altool --upload-app --type ios --file "$IPA_PATH" --username "$FASTLANE_ITC_USERNAME" --password "@env:FASTLANE_PASSWORD"
|
FASTLANE_PASSWORD="$FASTLANE_PASSWORD" xcrun altool --upload-app --type ios --file "$IPA_PATH" --username "$FASTLANE_ITC_USERNAME" --password "@env:FASTLANE_PASSWORD"
|
||||||
elif [ "$1" == "hockeyapp" ]; then
|
elif [ "$1" == "hockeyapp" ]; then
|
||||||
API_USER_NAME="$API_USER_NAME" API_APP_NAME="$API_APP_NAME" API_TOKEN="$API_TOKEN" sh buildbox/deploy-appcenter.sh
|
API_USER_NAME="$API_USER_NAME" API_APP_NAME="$API_APP_NAME" API_TOKEN="$API_TOKEN" sh buildbox/deploy-appcenter.sh
|
||||||
elif [ "$1" == "appcenter-experimental" ] || [ "$1" == "appcenter-experimental-2" ]; then
|
elif [ "$1" == "appcenter-experimental" ] || [ "$1" == "appcenter-experimental-2" ] || [ "$1" == "appstore-development" ]; then
|
||||||
API_USER_NAME="$API_USER_NAME" API_APP_NAME="$API_APP_NAME" API_TOKEN="$API_TOKEN" sh buildbox/deploy-appcenter.sh
|
API_USER_NAME="$API_USER_NAME" API_APP_NAME="$API_APP_NAME" API_TOKEN="$API_TOKEN" sh buildbox/deploy-appcenter.sh
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user