2020-08-20 17:35:04 +00:00
|
|
|
#! /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
|
2020-09-03 09:07:14 +00:00
|
|
|
wget -N https://github.com/matrix-org/complement/archive/master.tar.gz
|
2020-08-20 17:35:04 +00:00
|
|
|
tar -xzf master.tar.gz
|
|
|
|
|
|
|
|
# Run the tests!
|
|
|
|
cd complement-master
|
2023-10-11 16:41:12 +00:00
|
|
|
COMPLEMENT_BASE_IMAGE=complement-dendrite:latest go test -v -count=1 ./tests ./tests/csapi
|
2020-08-20 17:35:04 +00:00
|
|
|
|