Add support for running Complement on current working directories (#1291)

This will be used in the future by Buildkite to run on CI.
This commit is contained in:
Kegsay 2020-08-20 18:35:04 +01:00 committed by GitHub
parent 6d6bb75137
commit ec95d331a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 0 deletions

19
build/scripts/complement.sh Executable file
View file

@ -0,0 +1,19 @@
#! /bin/bash -eu
# This script is designed for developers who want to test their Dendrite code
# against Complement.
#
# It makes a Dendrite image which represents the current checkout,
# then downloads Complement and runs it with that image.
# Make image
cd `dirname $0`/../..
docker build -t complement-dendrite -f build/scripts/Complement.Dockerfile .
# Download Complement
wget https://github.com/matrix-org/complement/archive/master.tar.gz
tar -xzf master.tar.gz
# Run the tests!
cd complement-master
COMPLEMENT_BASE_IMAGE=complement-dendrite:latest go test -v ./tests