This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree 3 files changed +10
-7
lines changed
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -52,5 +52,5 @@ __pycache__/
52
52
book /
53
53
54
54
# complement
55
- /complement-master
55
+ /complement- *
56
56
/master.tar.gz
Original file line number Diff line number Diff line change
1
+ Allow overriding complement commit using `COMPLEMENT_REF`.
Original file line number Diff line number Diff line change 8
8
# By default the script will fetch the latest Complement master branch and
9
9
# run tests with that. This can be overridden to use a custom Complement
10
10
# checkout by setting the COMPLEMENT_DIR environment variable to the
11
- # filepath of a local Complement checkout.
11
+ # filepath of a local Complement checkout or by setting the COMPLEMENT_REF
12
+ # environment variable to pull a different branch or commit.
12
13
#
13
14
# By default Synapse is run in monolith mode. This can be overridden by
14
15
# setting the WORKERS environment variable.
@@ -31,11 +32,12 @@ cd "$(dirname $0)/.."
31
32
32
33
# Check for a user-specified Complement checkout
33
34
if [[ -z " $COMPLEMENT_DIR " ]]; then
34
- echo " COMPLEMENT_DIR not set. Fetching the latest Complement checkout..."
35
- wget -Nq https://github.com/matrix-org/complement/archive/master.tar.gz
36
- tar -xzf master.tar.gz
37
- COMPLEMENT_DIR=complement-master
38
- echo " Checkout available at 'complement-master'"
35
+ COMPLEMENT_REF=${COMPLEMENT_REF:- master}
36
+ echo " COMPLEMENT_DIR not set. Fetching Complement checkout from ${COMPLEMENT_REF} ..."
37
+ wget -Nq https://github.com/matrix-org/complement/archive/${COMPLEMENT_REF} .tar.gz
38
+ tar -xzf ${COMPLEMENT_REF} .tar.gz
39
+ COMPLEMENT_DIR=complement-${COMPLEMENT_REF}
40
+ echo " Checkout available at 'complement-${COMPLEMENT_REF} '"
39
41
fi
40
42
41
43
# Build the base Synapse image from the local checkout
You can’t perform that action at this time.
0 commit comments