mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-22 06:11:55 -06:00
5888329b13
Sister PR to matrix-org/complement#666 Context: https://github.com/matrix-org/complement/issues/654#issuecomment-1746613495
20 lines
604 B
Bash
Executable file
20 lines
604 B
Bash
Executable file
#! /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 -N 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 -count=1 ./tests ./tests/csapi
|
|
|