This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from matrix-org/babolivier/ci
Add SyTest to the BuildKite CI
- Loading branch information
Showing
5 changed files
with
138 additions
and
59 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
if [[ "$BUILDKITE_BRANCH" == "dinsic" ]]; then | ||
echo "Not merging forward, as this is a release branch" | ||
exit 0 | ||
fi | ||
|
||
if [[ -z $BUILDKITE_PULL_REQUEST_BASE_BRANCH ]]; then | ||
echo "Can't figure out what the PR number is! Assuming merge target is dinsic." | ||
|
||
# It probably hasn't had a PR opened yet. Since all PRs for dinsic land on | ||
# dinsic, we can probably assume it's based on it and will be merged into | ||
# it. | ||
GITBASE="dinsic" | ||
else | ||
# Get the reference, using the GitHub API | ||
GITBASE=$BUILDKITE_PULL_REQUEST_BASE_BRANCH | ||
fi | ||
|
||
# Show what we are before | ||
git --no-pager show -s | ||
|
||
# Set up username so it can do a merge | ||
git config --global user.email bot@matrix.org | ||
git config --global user.name "A robot" | ||
|
||
# Fetch and merge. If it doesn't work, it will raise due to set -e. | ||
git fetch -u origin $GITBASE | ||
git merge --no-edit --no-commit origin/$GITBASE | ||
|
||
# Show what we are after. | ||
git --no-pager show -s |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
Add SyTest to the BuildKite CI. |