mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 01:13:10 -06:00
Add scripts to run sytest on jenkins
This commit is contained in:
parent
8c2e6273e3
commit
1b0795f541
13
jenkins/prepare-dendrite.sh
Executable file
13
jenkins/prepare-dendrite.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# build the dendrite binaries into ./bin
|
||||||
|
|
||||||
|
cd `dirname $0`/..
|
||||||
|
|
||||||
|
set -eux
|
||||||
|
|
||||||
|
export GOPATH=`pwd`/.gopath
|
||||||
|
export PATH="${GOPATH}/bin:$PATH"
|
||||||
|
|
||||||
|
go get github.com/constabulary/gb/...
|
||||||
|
gb build
|
||||||
23
jenkins/test-monolith.sh
Executable file
23
jenkins/test-monolith.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eux
|
||||||
|
|
||||||
|
cd `dirname $0`/..
|
||||||
|
|
||||||
|
: ${WORKSPACE:="$(pwd)"}
|
||||||
|
export WORKSPACE
|
||||||
|
|
||||||
|
./jenkins/prepare-dendrite.sh
|
||||||
|
|
||||||
|
if [ ! -d "sytest" ]; then
|
||||||
|
git clone https://github.com/matrix-org/sytest.git --depth 1 --branch dendrite
|
||||||
|
else
|
||||||
|
git -C sytest fetch --depth 1 origin dendrite
|
||||||
|
git -C sytest reset --hard FETCH_HEAD
|
||||||
|
fi
|
||||||
|
|
||||||
|
./sytest/jenkins/prep_sytest_for_postgres.sh
|
||||||
|
|
||||||
|
./sytest/jenkins/install_and_run.sh \
|
||||||
|
-I Dendrite::Monolith \
|
||||||
|
--dendrite-binary-directory $WORKSPACE/bin
|
||||||
Loading…
Reference in a new issue