diff options
author | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2022-07-01 17:16:54 +0100 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2022-07-04 12:01:09 +0100 |
commit | 37112f76f772aede58715498ed749f80a4683760 (patch) | |
tree | 401900d63f843961b751e73281e402884ebb056b | |
parent | Newsfile (diff) | |
download | synapse-37112f76f772aede58715498ed749f80a4683760.tar.xz |
Add a --build-only argument to complement.sh
-rwxr-xr-x | scripts-dev/complement.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts-dev/complement.sh b/scripts-dev/complement.sh index 8448d49e26..04ccf127f9 100755 --- a/scripts-dev/complement.sh +++ b/scripts-dev/complement.sh @@ -47,12 +47,16 @@ Run the complement test suite on Synapse. -f Skip rebuilding the docker images, and just use the most recent 'complement-synapse:latest' image + --build-only + Only build the Docker images. Don't actually run Complement. + For help on arguments to 'go test', run 'go help testflag'. EOF } # parse our arguments skip_docker_build="" +skip_complement_run="" while [ $# -ge 1 ]; do arg=$1 case "$arg" in @@ -63,6 +67,9 @@ while [ $# -ge 1 ]; do "-f") skip_docker_build=1 ;; + "--build-only") + skip_complement_run=1 + ;; *) # unknown arg: presumably an argument to gotest. break the loop. break @@ -106,6 +113,11 @@ if [ -z "$skip_docker_build" ]; then echo_if_github "::endgroup::" fi +if [ -n "$skip_complement_run" ]; then + echo "Skipping Complement run as requested." + exit +fi + export COMPLEMENT_BASE_IMAGE=complement-synapse extra_test_args=() |