-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ tuist = '4.41.0' | |
periphery = '2.21.1' | ||
swiftformat = '0.54.5' | ||
swiftlint = '0.57.0' | ||
sentry-cli = "latest" | ||
|
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# CI_COMMIT - The Git commit hash that Xcode Cloud uses for the current build. | ||
# SENTRY_URL - The URL of our self hosted Sentry. | ||
# SENTRY_AUTH_TOKEN - The authentication token for Sentry. | ||
# SENTRY_PROJECT - The project id in our Sentry. | ||
|
||
# Ensure we have a commit hash | ||
if [ -z "$CI_COMMIT" ]; then | ||
echo "Error: CI_COMMIT variable is not set." | ||
exit 1 | ||
fi | ||
|
||
# Ensure SENTRY_URL is set | ||
if [ -z "$SENTRY_URL" ]; then | ||
echo "Error: SENTRY_URL variable is not set." | ||
exit 1 | ||
fi | ||
|
||
# Ensure SENTRY_AUTH_TOKEN is set | ||
if [ -z "$SENTRY_AUTH_TOKEN" ]; then | ||
echo "Error: SENTRY_AUTH_TOKEN variable is not set." | ||
exit 1 | ||
fi | ||
|
||
# Ensure SENTRY_PROJECT is set | ||
if [ -z "$SENTRY_PROJECT" ]; then | ||
echo "Error: SENTRY_PROJECT variable is not set." | ||
exit 1 | ||
fi | ||
|
||
# Retrieve the commit title from the given commit hash | ||
commit_title="$(git log --format=%s -n 1 "$CI_COMMIT")" | ||
|
||
# Check if the commit title begins with the expected string | ||
if [[ "$commit_title" == chore:\ Release\ build* ]]; then | ||
echo "Commit title is valid. Continuing..." | ||
else | ||
echo "Error: The commit title is not 'chore: Release build'." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
./check_preconditions.sh | ||
|
||
cd .. | ||
|
||
curl https://mise.run | sh | ||
export PATH="$HOME/.local/bin:$PATH" | ||
|
||
mise install | ||
eval "$(mise activate bash --shims)" | ||
|
||
tuist install | ||
tuist generate --no-open |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
./check_preconditions.sh | ||
|
||
cd .. | ||
|
||
curl https://mise.run | sh | ||
export PATH="$HOME/.local/bin:$PATH" | ||
|
||
mise install | ||
eval "$(mise activate bash --shims)" | ||
|
||
|
||
if [[ -n $CI_ARCHIVE_PATH ]]; | ||
then | ||
# Upload dSYMs | ||
sentry-cli --url $SENTRY_URL --auth-token $SENTRY_AUTH_TOKEN upload-dif --org sentry --project $SENTRY_PROJECT $CI_ARCHIVE_PATH | ||
else | ||
echo "Archive path isn't available. Unable to run dSYMs uploading script." | ||
fi |