diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2015-08-12 19:33:58 +0530 |
---|---|---|
committer | Vishal Bhoj <vishal.bhoj@linaro.org> | 2015-08-12 21:09:20 +0530 |
commit | 798e95452773e6e32f16aef06979919cf1e5dbec (patch) | |
tree | 24f96596666e8c209835f6b36e7192cde0692d90 /acov.sh | |
parent | 908f77903184bf9970baf2b67ead31d7cf0a890f (diff) |
Add setup script that prepares for Android build
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'acov.sh')
-rwxr-xr-x | acov.sh | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -81,19 +81,23 @@ fi rm -rf art/ build/ external/vixl +set +xe + # Download the code repo sync -j${cpu_count} -c if [ $? -ne 0 ]; then echo "Error: *** repo sync failed" if [ -n "$GERRIT_PROJECT" ]; then - rm -rf ~/.ssh/known_hosts + rm -rf ~/.ssh/known_hosts ssh-keyscan -t rsa -p 29418 dev-private-review.linaro.org >> ~/.ssh/known_hosts ssh -p $GERRIT_PORT linaro-big-little-switcher-bot@$GERRIT_HOST gerrit review -p $GERRIT_PROJECT -m '"Automatic Merge Failed"' --code-review -1 $GERRIT_CHANGE_NUMBER,$GERRIT_PATCHSET_NUMBER exit -1 fi fi +set -xe + # Configure ccache USE_CCACHE=1 CCACHE_DIR="${base_dir}/.ccache" @@ -110,8 +114,8 @@ fi if [ -n "$GERRIT_PROJECT" ] && [ $GERRIT_EVENT_TYPE == "patchset-created" ]; then cd `grep -rni $GERRIT_PROJECT\" .repo/local_manifests | grep -Po 'path="\K[^"]*'` if git pull ssh://git@$GERRIT_HOST/$GERRIT_PROJECT $GERRIT_REFSPEC | grep -q "Automatic merge failed" ; then - rm -rf ~/.ssh/known_hosts - ssh-keyscan -t rsa -p 29418 dev-private-review.linaro.org >> ~/.ssh/known_hosts + rm -rf ~/.ssh/known_hosts + ssh-keyscan -t rsa -p 29418 dev-private-review.linaro.org >> ~/.ssh/known_hosts ssh -p $GERRIT_PORT linaro-big-little-switcher-bot@$GERRIT_HOST gerrit review -p $GERRIT_PROJECT -m '"Automatic Merge Failed"' --code-review -1 $GERRIT_CHANGE_NUMBER,$GERRIT_PATCHSET_NUMBER git reset --hard echo "Error: *** patch merge failed" |