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.
Test Synapse against Complement with workers. (#12810)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
- Loading branch information
1 parent
c8684e6
commit bf01e51
Showing
3 changed files
with
66 additions
and
20 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,25 @@ | ||
#!/bin/bash | ||
# | ||
# Fetches a version of complement which best matches the current build. | ||
# | ||
# The tarball is unpacked into `./complement`. | ||
|
||
set -e | ||
mkdir -p complement | ||
|
||
# Pick an appropriate version of complement. Depending on whether this is a PR or release, | ||
# etc. we need to use different fallbacks: | ||
# | ||
# 1. First check if there's a similarly named branch (GITHUB_HEAD_REF | ||
# for pull requests, otherwise GITHUB_REF). | ||
# 2. Attempt to use the base branch, e.g. when merging into release-vX.Y | ||
# (GITHUB_BASE_REF for pull requests). | ||
# 3. Use the default complement branch ("HEAD"). | ||
for BRANCH_NAME in "$GITHUB_HEAD_REF" "$GITHUB_BASE_REF" "${GITHUB_REF#refs/heads/}" "HEAD"; do | ||
# Skip empty branch names and merge commits. | ||
if [[ -z "$BRANCH_NAME" || $BRANCH_NAME =~ ^refs/pull/.* ]]; then | ||
continue | ||
fi | ||
|
||
(wget -O - "https://github.com/matrix-org/complement/archive/$BRANCH_NAME.tar.gz" | tar -xz --strip-components=1 -C complement) && break | ||
done |
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 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 @@ | ||
Test Synapse against Complement with workers. |