mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 14:12:47 +00:00
Use race condition detection on sytest runs
This commit is contained in:
parent
7f0a40c3a4
commit
fe72cd8c56
2 changed files with 24 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue