xref: /6.0.3/couchdb/test/ci/dowatch (revision 80992523)
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  current="`git ls-remote git://github.com/couchbase/couchdb $BRANCH | awk '{print $1}'`"
14  good="`cat ~/couchdb.good`"
15  if [ "$current" != "$good" ]; then exit 0; fi
16done
17
18