summary refs log tree commit diff
path: root/scripts-dev
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-07-01 16:42:49 +0100
committerGitHub <noreply@github.com>2022-07-01 15:42:49 +0000
commitc04e25789ee7fa5bd57864ad7687595f44996798 (patch)
tree174c95a90755cc4b8db4e35da36222833d278107 /scripts-dev
parentcomplement.sh: Permit skipping docker build (#13143) (diff)
downloadsynapse-c04e25789ee7fa5bd57864ad7687595f44996798.tar.xz
Enable Complement testing in the 'Twisted Trunk' CI runs. (#13079)
Diffstat (limited to 'scripts-dev')
-rwxr-xr-xscripts-dev/complement.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts-dev/complement.sh b/scripts-dev/complement.sh
index 20df5fbc24..8448d49e26 100755
--- a/scripts-dev/complement.sh
+++ b/scripts-dev/complement.sh
@@ -23,6 +23,9 @@
 #
 # ./complement.sh -run "TestOutboundFederation(Profile|Send)"
 #
+# Specifying TEST_ONLY_SKIP_DEP_HASH_VERIFICATION=1 will cause `poetry export`
+# to not emit any hashes when building the Docker image. This then means that
+# you can use 'unverifiable' sources such as git repositories as dependencies.
 
 # Exit if a line returns a non-zero exit code
 set -e
@@ -86,7 +89,9 @@ fi
 if [ -z "$skip_docker_build" ]; then
     # Build the base Synapse image from the local checkout
     echo_if_github "::group::Build Docker image: matrixdotorg/synapse"
-    docker build -t matrixdotorg/synapse -f "docker/Dockerfile" .
+    docker build -t matrixdotorg/synapse \
+      --build-arg TEST_ONLY_SKIP_DEP_HASH_VERIFICATION \
+      -f "docker/Dockerfile" .
     echo_if_github "::endgroup::"
 
     # Build the workers docker image (from the base Synapse image we just built).