Skip to content

Commit

Permalink
Try to include experimental patches into git logs/manifests
Browse files Browse the repository at this point in the history
This is pointless for automated submission tests, but useful for
larger audience experimental builds
  • Loading branch information
rmcc committed Dec 27, 2013
1 parent e565c89 commit 684e68d
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,20 +203,6 @@ fi
lunch $LUNCH
check_result "lunch failed."

# save manifest used for build (saving revisions as current HEAD)

# include only the auto-generated locals
TEMPSTASH=$(mktemp -d)
mv .repo/local_manifests/* $TEMPSTASH
mv $TEMPSTASH/roomservice.xml .repo/local_manifests/

# save it
repo manifest -o $WORKSPACE/archive/manifest.xml -r

# restore all local manifests
mv $TEMPSTASH/* .repo/local_manifests/ 2>/dev/null
rmdir $TEMPSTASH

rm -f $OUT/cm-*.zip*

UNAME=$(uname)
Expand Down Expand Up @@ -274,13 +260,25 @@ then
fi
fi

if [ ! "$(ccache -s|grep -E 'max cache size'|awk '{print $4}')" = "100.0" ]
then
ccache -M 100G
fi
# save manifest used for build (saving revisions as current HEAD)

# include only the auto-generated locals
TEMPSTASH=$(mktemp -d)
mv .repo/local_manifests/* $TEMPSTASH
mv $TEMPSTASH/roomservice.xml .repo/local_manifests/

# Generate git logs for all platform repos
rm -f $WORKSPACE/changecount
WORKSPACE=$WORKSPACE LUNCH=$LUNCH bash $WORKSPACE/hudson/changes/buildlog.sh 2>&1

# save it
repo manifest -o $WORKSPACE/archive/manifest.xml -r

# restore all local manifests
mv $TEMPSTASH/* .repo/local_manifests/ 2>/dev/null
rmdir $TEMPSTASH

# Abort build if it's exactly the same as the previous one
if [ -f $WORKSPACE/changecount ]
then
CHANGE_COUNT=$(cat $WORKSPACE/changecount)
Expand All @@ -292,6 +290,13 @@ then
fi
fi



if [ ! "$(ccache -s|grep -E 'max cache size'|awk '{print $4}')" = "100.0" ]
then
ccache -M 100G
fi

LAST_CLEAN=0
if [ -f .clean ]
then
Expand Down

0 comments on commit 684e68d

Please sign in to comment.