forked from Apon77/aosp-builder
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsync
executable file
·22 lines (17 loc) · 900 Bytes
/
sync
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Telgram env setup
export BOT_MSG_URL="https://api.telegram.org/bot$API_BOT/sendMessage"
export BOT_BUILD_URL="https://api.telegram.org/bot$API_BOT/sendDocument"
tg_post_msg() {
curl -s -X POST "$BOT_MSG_URL" -d chat_id="$2" \
-d "parse_mode=html" \
-d text="$1"
}
tg_post_msg "Starting sync "$MANIFEST" "$BRANCH" https://cirrus-ci.com/build/$CIRRUS_BUILD_ID" "$CHATID"
#!/bin/bash
mkdir -p /tmp/rom
cd /tmp/rom
repo init --no-repo-verify --depth=1 -u "$MANIFEST" -b "$BRANCH" -g default,-device,-mips,-darwin,-notdefault
git clone "$LOCAL_MANIFEST" -b "$BLOCAL" --depth=1 .repo/local_manifests
git config --global user.name "D4rkKnight21"
git config --global user.email "yusuff8621@gmail.com"
repo sync -c --no-clone-bundle --no-tags --optimized-fetch --prune --force-sync -j$(nproc --all) || repo sync -c --no-clone-bundle --no-tags --optimized-fetch --prune --force-sync -j$(nproc --all)