update live

pull/4382/head
aniket-engg 11 months ago committed by Aniket
parent 2ce0826411
commit 37c6b26aaa
  1. 33
      gulpfile.js
  2. 3
      package.json
  3. 18
      release-process.md

@ -65,20 +65,37 @@ task('syncLibVersions', async function () {
}); });
async function setBranchHead(branchName, head) { async function setBranchHead(branchName, head) {
console.log(await promisifyExec(`git checkout ${branchName}`)); try {
console.log(await promisifyExec(`git pull origin ${branchName}`)); console.log(`Setting ${branchName} branch head to ${head}`)
console.log(`pull done for ${branchName}`) let cmdOp = await promisifyExec(`git checkout ${branchName}`)
console.log(await promisifyExec(`git reset --hard ${head}`)); console.log(cmdOp.stdout)
await promisifyExec(`git push -f origin ${branchName}`); cmdOp = await promisifyExec(`git pull origin ${branchName}`)
console.log(cmdOp.stdout)
cmdOp = await promisifyExec(`git reset --hard ${head}`)
console.log(cmdOp.stdout)
cmdOp = await promisifyExec(`git push -f origin ${branchName}`)
console.log(cmdOp.stdout)
}catch(error) {
console.error(error)
}
} }
/* /*
* @dev Task to set remix_beta branch up to date with master * @dev Task to set remix_beta branch up to date with master
*/ */
task('updateBeta', async function () { task('updateBetaToMaster', async function () {
const masterBranchDetails = await axios.get('https://api.github.com/repos/ethereum/remix-project/branches/master') const masterBranchDetails = await axios.get('https://api.github.com/repos/ethereum/remix-project/branches/master')
const masterBranchHead = masterBranchDetails.data.commit.sha const masterBranchHead = masterBranchDetails.data.commit.sha
console.log(`Setting remix_beta to ${masterBranchHead} commit`)
await setBranchHead('remix_beta', masterBranchHead) await setBranchHead('remix_beta', masterBranchHead)
await Promise.resolve(); await Promise.resolve();
}); });
/*
* @dev Task to set remix_live branch up to date with remix_beta
*/
task('updateLiveToBeta', async function () {
const betaBranchDetails = await axios.get('https://api.github.com/repos/ethereum/remix-project/branches/remix_beta')
const betaBranchHead = betaBranchDetails.data.commit.sha
await setBranchHead('remix_live', betaBranchHead)
await Promise.resolve();
});

@ -56,7 +56,8 @@
"babel": "babel", "babel": "babel",
"watch:e2e": "nodemon", "watch:e2e": "nodemon",
"bumpVersion:libs": "gulp & gulp syncLibVersions;", "bumpVersion:libs": "gulp & gulp syncLibVersions;",
"updateBeta": "gulp & gulp updateBeta;", "updateBeta": "gulp & gulp updateBetaToMaster;",
"updateLive": "gulp & gulp updateLiveToBeta;",
"browsertest": "sleep 5 && yarn run nightwatch_local", "browsertest": "sleep 5 && yarn run nightwatch_local",
"csslint": "csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='apps/remix-ide/src/assets/css/font-awesome.min.css' apps/remix-ide/src/assets/css/", "csslint": "csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='apps/remix-ide/src/assets/css/font-awesome.min.css' apps/remix-ide/src/assets/css/",
"downloadsolc_assets_e2e": "node ./apps/remix-ide/ci/download_e2e_assets.js", "downloadsolc_assets_e2e": "node ./apps/remix-ide/ci/download_e2e_assets.js",

@ -11,6 +11,12 @@ This document includes the release instructions for:
## Feature Freeze ## Feature Freeze
Once feature freeze is done, `remix_beta` should be updated latest to the master which will automatically update `remix-beta.ethereum.org` through a CI job. Once feature freeze is done, `remix_beta` should be updated latest to the master which will automatically update `remix-beta.ethereum.org` through a CI job.
Use this unified command:
- `yarn run updateBeta`
or individually:
- `git checkout remix_beta` - `git checkout remix_beta`
- `git pull origin remix_beta` - `git pull origin remix_beta`
- `git reset --hard <master-commit-hash>` (`master-commit-hash` will be latest commit id from `master` branch) - `git reset --hard <master-commit-hash>` (`master-commit-hash` will be latest commit id from `master` branch)
@ -54,6 +60,12 @@ Make sure release highlights and full changelog link is updated to show them on
#### Make sure `remix_beta` is up-to-date with `master` branch: #### Make sure `remix_beta` is up-to-date with `master` branch:
Use this unified command:
- `yarn run updateBeta`
or individually:
- `git checkout remix_beta` - `git checkout remix_beta`
- `git pull origin remix_beta` - `git pull origin remix_beta`
- `git reset --hard <master-commit-hash>` - `git reset --hard <master-commit-hash>`
@ -78,6 +90,12 @@ Make sure release highlights and full changelog link is updated to show them on
Updating the `remix_live` branch latest to the `remix_beta` runs the CircleCI build which updates liver version of Remix IDE on `remix.ethereum.org` Updating the `remix_live` branch latest to the `remix_beta` runs the CircleCI build which updates liver version of Remix IDE on `remix.ethereum.org`
Use this unified command:
- `yarn run updateLive`
or individually:
- `git checkout remix_live` - `git checkout remix_live`
- `git pull origin remix_live` - `git pull origin remix_live`
- `git reset --hard <remix_beta-commit-hash>` or `<master-commit-hash>` sometimes - `git reset --hard <remix_beta-commit-hash>` or `<master-commit-hash>` sometimes

Loading…
Cancel
Save