additional release.sh debugging info (#2922)

This commit is contained in:
Jaco Greeff 2016-10-27 21:05:47 +02:00 committed by GitHub
parent 22af04e81d
commit 9fd8ac6a15

View File

@ -23,28 +23,37 @@ rm -rf ./.git
git init
# add local files and send it up
echo "Setting up GitHub config for js-precompiled"
setup_git_user
echo "Checking out $CI_BUILD_REF_NAME branch"
git remote add origin https://${GITHUB_JS_PRECOMPILED}:@github.com/ethcore/js-precompiled.git
git fetch origin 2>$GITLOG
git checkout -b $CI_BUILD_REF_NAME
echo "Committing compiled files for $UTCDATE"
git add .
git commit -m "$UTCDATE"
echo "Merging remote"
git merge origin/$CI_BUILD_REF_NAME -X ours --commit -m "$UTCDATE [release]"
git push origin HEAD:refs/heads/$CI_BUILD_REF_NAME 2>$GITLOG
PRECOMPILED_HASH=$(git rev-parse HEAD)
echo "Remote updated with [$PRECOMPILED_HASH]"
# back to root
popd
# inti git with right origin
echo "Setting up GitHub config for parity"
setup_git_user
git remote set-url origin https://${GITHUB_JS_PRECOMPILED}:@github.com/ethcore/parity.git
# at this point we have a detached head on GitLab, reset
git reset --hard origin/$CI_BUILD_REF_NAME 2>$GITLOG
# bump js-precompiled, add, commit & push
echo "Updating cargo package parity-ui-precompiled"
cargo update -p parity-ui-precompiled --precise $PRECOMPILED_HASH
echo "Committing updated files"
git add . || true
git commit -m "[ci skip] js-precompiled $UTCDATE"
git push origin HEAD:refs/heads/$CI_BUILD_REF_NAME 2>$GITLOG