Auto-bump js-precompiled on release (#2828)
* Auto-bump js-precompiled on release * [ci skip] js-precompiled 20161022-232245 * Remove old GitLab tests * Only move file.ext (get rid of error) * allow add, commit & push failures (auto-bump)
This commit is contained in:
parent
cf67ed964e
commit
285727e2fd
@ -316,7 +316,6 @@ js-release:
|
||||
stage: build
|
||||
image: ethcore/javascript:latest
|
||||
only:
|
||||
- js
|
||||
- master
|
||||
- beta
|
||||
- tags
|
||||
|
@ -6,6 +6,7 @@ cd ..
|
||||
|
||||
# run build (production) and store the exit code
|
||||
EXITCODE=0
|
||||
rm -rf .build
|
||||
npm run ci:build || EXITCODE=1
|
||||
|
||||
# back to root
|
||||
|
@ -1,6 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# setup the git user defaults for the current repo
|
||||
function setup_git_user {
|
||||
git config push.default simple
|
||||
git config merge.ours.driver true
|
||||
git config user.email "jaco+gitlab@ethcore.io"
|
||||
git config user.name "GitLab Build Bot"
|
||||
}
|
||||
|
||||
# change into the build directory
|
||||
pushd `dirname $0`
|
||||
cd ../.build
|
||||
@ -10,7 +18,7 @@ UTCDATE=`date -u "+%Y%m%d-%H%M%S"`
|
||||
|
||||
# Create proper directory structure
|
||||
mkdir -p build
|
||||
mv * build || true
|
||||
mv *.* build
|
||||
mkdir -p src
|
||||
|
||||
# Copy rust files
|
||||
@ -22,13 +30,8 @@ cp ../src/lib.rs* ./src/
|
||||
rm -rf ./.git
|
||||
git init
|
||||
|
||||
# our user details
|
||||
git config push.default simple
|
||||
git config merge.ours.driver true
|
||||
git config user.email "jaco+gitlab@ethcore.io"
|
||||
git config user.name "GitLab Build Bot"
|
||||
|
||||
# add local files and send it up
|
||||
setup_git_user
|
||||
git remote add origin https://${GITHUB_JS_PRECOMPILED}:@github.com/ethcore/js-precompiled.git
|
||||
git fetch origin
|
||||
git checkout -b $CI_BUILD_REF_NAME
|
||||
@ -40,5 +43,16 @@ git push origin $CI_BUILD_REF_NAME
|
||||
# back to root
|
||||
popd
|
||||
|
||||
# bump js-precompiled
|
||||
cargo update -p parity-ui-precompiled
|
||||
|
||||
# add to git and push
|
||||
setup_git_user
|
||||
git remote set-url origin https://${GITHUB_JS_PRECOMPILED}:@github.com/ethcore/parity.git
|
||||
git fetch origin
|
||||
git add . || true
|
||||
git commit -m "[ci skip] js-precompiled $UTCDATE" || true
|
||||
git push origin || true
|
||||
|
||||
# exit with exit code
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user