mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 03:13:11 -06:00
Use race condition detection on sytest runs
This commit is contained in:
parent
7f0a40c3a4
commit
fe72cd8c56
|
|
@ -10,7 +10,7 @@ jobs:
|
||||||
# Set up dendrite
|
# Set up dendrite
|
||||||
- run:
|
- run:
|
||||||
name: Build Dendrite
|
name: Build Dendrite
|
||||||
command: ./build.sh
|
command: ./build.sh -r
|
||||||
- run:
|
- run:
|
||||||
name: Copy dummy keys to root
|
name: Copy dummy keys to root
|
||||||
command: |
|
command: |
|
||||||
|
|
|
||||||
24
build.sh
24
build.sh
|
|
@ -1,3 +1,25 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
GOBIN=$PWD/`dirname $0`/bin go install -v ./cmd/...
|
ARGS="-v ./cmd/..."
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
echo "Usage: $0 [-r]" 1>&2
|
||||||
|
echo
|
||||||
|
echo "-r"
|
||||||
|
echo " Build with race condition detection"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
while getopts ":r" o; do
|
||||||
|
case "${o}" in
|
||||||
|
r)
|
||||||
|
# Turn on race condition detection
|
||||||
|
ARGS="-race $ARGS"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
GOBIN=$PWD/`dirname $0`/bin go install $ARGS
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue