Check-in [b00d829cca]
Overview
SHA1:b00d829cca8d353dfe52e1e7e43c170004719b6a
Date: 2011-05-21 13:57:15
User: rkeene
Comment:Updated to use FOSSIL_CHANGE as UUID for download, to prevent potential race condition
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2011-05-21
16:04
[fb120151ec] Updated to only look at the trunk for the change UUID (user: rkeene, tags: trunk)
13:57
[b00d829cca] Updated to use FOSSIL_CHANGE as UUID for download, to prevent potential race condition (user: rkeene, tags: trunk)
13:49
[c2be59edab] Added basic sanity check to nightly testing script (user: rkeene, tags: trunk)
Changes

Modified build/test/do-nightly-tests-and-publish from [751816bb2c] to [02642024b3].

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
..
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Determine change of fossil revision
FOSSIL_CHANGE="$(fossil timeline --repository "${KITCREATORFOSSIL}" -n 1 -t ci | grep '^[0-9:]* \[' | sed 's@^[0-9:]* \[\([0-9a-f]*\)\].*$@\1@')"
TESTNAME="fossil_${FOSSIL_CHANGE}"
export FOSSIL_CHANGE TESTNAME

# Verify sanity
issane=1
if [ ! -f "${KITCREATORFOSSIL}" ]; then
	echo "Missing Kitcreator Fossil Repo: ${KITCREATORFOSSIL}" >&2

	issane=0
fi

if [ ! -d "${WEBROOTDIR}" ]; then
	echo "Missing Web Root Directory: ${WEBROOTDIR}" >&2

................................................................................

	rm -rf "${TMPWORKDIR}"

	exit 1
}

# Download latest tarball
wget -O 'kitcreator-trunk-tip.tar.gz' -o /dev/null 'http://kitcreator.rkeene.org/fossil/tarball/kitcreator-trunk-tip.tar.gz?uuid=trunk'

tar -xf kitcreator-trunk-tip.tar.gz || die 'Tarball Extraction Failed'

cd kitcreator-trunk-tip || die 'Tarball Sanity Failed'

# Prepare source
./build/pre.sh >/dev/null 2>/dev/null







|
|







 







|







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
..
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Determine change of fossil revision
FOSSIL_CHANGE="$(fossil timeline --repository "${KITCREATORFOSSIL}" -n 1 -t ci | grep '^[0-9:]* \[' | sed 's@^[0-9:]* \[\([0-9a-f]*\)\].*$@\1@')"
TESTNAME="fossil_${FOSSIL_CHANGE}"
export FOSSIL_CHANGE TESTNAME

# Verify sanity
issane=1
if [ -z "${FOSSIL_CHANGE}" ]; then
	echo "Unable to determine name of latest revision, likely missing Kitcreator Fossil Repo: ${KITCREATORFOSSIL}" >&2

	issane=0
fi

if [ ! -d "${WEBROOTDIR}" ]; then
	echo "Missing Web Root Directory: ${WEBROOTDIR}" >&2

................................................................................

	rm -rf "${TMPWORKDIR}"

	exit 1
}

# Download latest tarball
wget -O 'kitcreator-trunk-tip.tar.gz' -o /dev/null "http://kitcreator.rkeene.org/fossil/tarball/kitcreator-trunk-tip.tar.gz?uuid=${FOSSIL_CHANGE}"

tar -xf kitcreator-trunk-tip.tar.gz || die 'Tarball Extraction Failed'

cd kitcreator-trunk-tip || die 'Tarball Sanity Failed'

# Prepare source
./build/pre.sh >/dev/null 2>/dev/null