Skip to content

Commit

Permalink
Merge branch 'master' into release-0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Priya Samuel committed Aug 10, 2018
2 parents 793d05f + 67dc2bf commit 57687ff
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export DEBUG_MODE=1
export CONFIG=/tmp/smoke_test_$$.dmconfig
export REMOTE="smoke_test_`date +%s`"


VERSION=`cd cmd/versioner; go run versioner.go`

function delete_lingering_dots() {
platform=`uname`
DOTS=`"$DM" -c "$CONFIG" list | grep "volume" | cut -d ' ' -f 3` || true
Expand Down Expand Up @@ -63,7 +66,12 @@ echo "### Fetching client"
mkdir -p $SMOKE_TEST_DIR
curl -sSL -o $SMOKE_TEST_DIR/dm https://get.dotmesh.io/unstable/$CI_COMMIT_REF_NAME/$(uname -s)/dm
if [[ $CI_COMMIT_REF_NAME = *"release"* ]]; then
curl -sSL -o $SMOKE_TEST_DIR/dm https://get.dotmesh.io/$VERSION/$(uname -s)/dm
else
curl -sSL -o $SMOKE_TEST_DIR/dm https://get.dotmesh.io/unstable/$CI_COMMIT_REF_NAME/$(uname -s)/dm
fi
chmod +x $SMOKE_TEST_DIR/dm
sudo "$DM" -c "$CONFIG" cluster reset || (sleep 10; sudo "$DM" cluster reset) || true
Expand Down

0 comments on commit 57687ff

Please sign in to comment.