xref: /5.5.2/couchdb/test/ci/dowatch (revision abb37c58)
1#!/bin/bash
2
3source ~/.cienv
4
5if [ "$WORKSPACE" = "" ]; then
6  echo 'WORKSPACE not set'
7  exit 2
8fi
9
10for i in {1..240}; do
11  cd $WORKSPACE
12  sleep 60
13  branch=unstable
14  current="`git ls-remote git://github.com/couchbase/couchdb $branch | awk '{print $1}'`"
15  good="`cat ~/couchdb.good`"
16  if [ "$current" != "$good" ]; then exit 0; fi
17done
18
19