Nightly script can now enable race-detection

pull/4364/head
Philip O'Toole 2015-10-07 22:12:34 -07:00
parent 880f55565e
commit abb6092bfe
1 changed files with 6 additions and 1 deletions

View File

@ -29,6 +29,11 @@ SMTP=$1
USER=$2
PASSWORD=$3
TO=$4
RACE_ENABLED=$5
if [ -n "$RACE_ENABLED" ]; then
race="-x"
fi
REPO_DIR=`mktemp -d`
echo "Using $REPO_DIR for all work..."
@ -41,7 +46,7 @@ git clone https://github.com/influxdb/influxdb.git
cd $GOPATH/src/github.com/influxdb/influxdb
VERSION="$MASTER_VERSION-nightly-`git log --pretty=format:'%h' -n 1`"
NIGHTLY_BUILD=true ./package.sh $VERSION
NIGHTLY_BUILD=true ./package.sh $race $VERSION
if [ $? -ne 0 ]; then
# Send notification e-mail.