update Beta to master

pull/4382/head
aniket-engg 11 months ago committed by Aniket
parent bc0dfa0521
commit 1d4acc6b1c
  1. 18
      gulpfile.js
  2. 1
      package.json

@ -5,6 +5,7 @@ const { task } = require('gulp');
const fs = require('fs');
const util = require('util');
const promisifyExec = util.promisify(require('child_process').exec);
const axios = require('axios');
var packageJSON = require('./package.json');
@ -62,3 +63,20 @@ task('syncLibVersions', async function () {
})
await Promise.resolve();
});
async function setBranchHead(branchName, head) {
await promisifyExec(`git checkout ${branchName}`);
await promisifyExec(`git pull origin ${branchName}`);
await promisifyExec(`git reset --hard ${head}`);
await promisifyExec(`git push -f origin ${branchName}`);
}
/*
* @dev Task to set remix_beta branch up to date with master
*/
task('updateBeta', async function () {
const masterBranchDetails = await axios.get('https://api.github.com/repos/ethereum/remix-project/branches/master')
const masterBranchHead = masterBranchDetails.data.commit.sha
await setBranchHead('remixbeta', masterBranchHead)
await Promise.resolve();
});

@ -56,6 +56,7 @@
"babel": "babel",
"watch:e2e": "nodemon",
"bumpVersion:libs": "gulp & gulp syncLibVersions;",
"updateBeta": "gulp & gulp updateBeta;",
"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/",
"downloadsolc_assets_e2e": "node ./apps/remix-ide/ci/download_e2e_assets.js",

Loading…
Cancel
Save