Skip to content

Commit

Permalink
Merge pull request #861 from matrix-org/kegan/dendrite-just-build-mon…
Browse files Browse the repository at this point in the history
…olith

dendrite: Just build the monolith server when testing
  • Loading branch information
kegsay committed May 4, 2020
2 parents 9eea0ad + 36ae530 commit 21d44ea
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/dendrite_sytest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -ex

cd /sytest

mkdir /work
mkdir -p /work

# Make sure all Perl deps are installed -- this is done in the docker build so will only install packages added since the last Docker build
./install-deps.pl
Expand All @@ -23,6 +23,7 @@ su -c 'for i in pg1 pg2 sytest_template; do psql -c "CREATE DATABASE $i;"; done'
export PGUSER=postgres
export POSTGRES_DB_1=pg1
export POSTGRES_DB_2=pg2
export GOBIN=/tmp/bin

# Write out the configuration for a PostgreSQL Dendrite
# Note: Dendrite can run entirely within a single database as all of the tables have
Expand All @@ -32,15 +33,17 @@ export POSTGRES_DB_2=pg2
# Build dendrite
echo >&2 "--- Building dendrite from source"
cd /src
./build.sh
mkdir -p $GOBIN
go install -v ./cmd/dendrite-monolith-server
go install -v ./cmd/generate-keys
cd -

# Run the tests
echo >&2 "+++ Running tests"

TEST_STATUS=0
mkdir -p /logs
./run-tests.pl -I Dendrite::Monolith -d /src/bin -W /src/sytest-whitelist -O tap --all \
./run-tests.pl -I Dendrite::Monolith -d $GOBIN -W /src/sytest-whitelist -O tap --all \
--work-directory="/work" \
"$@" > /logs/results.tap || TEST_STATUS=$?

Expand Down

0 comments on commit 21d44ea

Please sign in to comment.