Update packages, pull in compiled-only repos (#7125)
* Update packages, pull in compiled-only repos * Update js-precompiled to point to js-dist-paritytech * Trigger both js & js-old builds to force update * Update to bring scripts 100% in-sync
This commit is contained in:
parent
d793019607
commit
53e0e3be14
12
Cargo.lock
generated
12
Cargo.lock
generated
@ -2200,8 +2200,8 @@ version = "1.9.0"
|
||||
dependencies = [
|
||||
"parity-ui-dev 1.9.0",
|
||||
"parity-ui-old-dev 1.9.0",
|
||||
"parity-ui-old-precompiled 1.9.0 (git+https://github.com/paritytech/js-precompiled.git?branch=v1)",
|
||||
"parity-ui-precompiled 1.9.0 (git+https://github.com/paritytech/js-precompiled.git)",
|
||||
"parity-ui-old-precompiled 1.9.0 (git+https://github.com/js-dist-paritytech/parity-master-1-9-v1.git)",
|
||||
"parity-ui-precompiled 1.9.0 (git+https://github.com/js-dist-paritytech/parity-master-1-9-shell.git)",
|
||||
"rustc_version 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
@ -2222,7 +2222,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "parity-ui-old-precompiled"
|
||||
version = "1.9.0"
|
||||
source = "git+https://github.com/paritytech/js-precompiled.git?branch=v1#acfb0974cbbdacf12463bf40e51ea8b60939be95"
|
||||
source = "git+https://github.com/js-dist-paritytech/parity-master-1-9-v1.git#f9c0ffbac32a11fa495b9b3fac20e30db411f51f"
|
||||
dependencies = [
|
||||
"parity-dapps-glue 1.9.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
@ -2230,7 +2230,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "parity-ui-precompiled"
|
||||
version = "1.9.0"
|
||||
source = "git+https://github.com/paritytech/js-precompiled.git#9b9f760d25aa28504177742f629bf6c639ff5062"
|
||||
source = "git+https://github.com/js-dist-paritytech/parity-master-1-9-shell.git#66ed9b6c4ff412f814fec1cac719c0380f86d64f"
|
||||
dependencies = [
|
||||
"parity-dapps-glue 1.9.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
@ -3651,8 +3651,8 @@ dependencies = [
|
||||
"checksum owning_ref 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "cdf84f41639e037b484f93433aa3897863b561ed65c6e59c7073d7c561710f37"
|
||||
"checksum parity-dapps-glue 1.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "261c025c67ba416e9fe63aa9b3236520ce3c74cfbe43590c9cdcec4ccc8180e4"
|
||||
"checksum parity-tokio-ipc 0.1.5 (git+https://github.com/nikvolf/parity-tokio-ipc)" = "<none>"
|
||||
"checksum parity-ui-old-precompiled 1.9.0 (git+https://github.com/paritytech/js-precompiled.git?branch=v1)" = "<none>"
|
||||
"checksum parity-ui-precompiled 1.9.0 (git+https://github.com/paritytech/js-precompiled.git)" = "<none>"
|
||||
"checksum parity-ui-old-precompiled 1.9.0 (git+https://github.com/js-dist-paritytech/parity-master-1-9-v1.git)" = "<none>"
|
||||
"checksum parity-ui-precompiled 1.9.0 (git+https://github.com/js-dist-paritytech/parity-master-1-9-shell.git)" = "<none>"
|
||||
"checksum parity-wasm 0.15.3 (registry+https://github.com/rust-lang/crates.io-index)" = "8431a184ad88cfbcd71a792aaca319cc7203a94300c26b8dce2d0df0681ea87d"
|
||||
"checksum parity-wordlist 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "81451bfab101d186f8fc4a0aa13cb5539b31b02c4ed96425a0842e2a413daba6"
|
||||
"checksum parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "149d8f5b97f3c1133e3cfcd8886449959e856b557ff281e292b733d7c69e005e"
|
||||
|
@ -13,8 +13,8 @@ rustc_version = "0.1"
|
||||
parity-ui-dev = { path = "../../js", optional = true }
|
||||
parity-ui-old-dev = { path = "../../js-old", optional = true }
|
||||
# This is managed by the js/scripts/release.sh script on CI - keep it in a single line
|
||||
parity-ui-old-precompiled = { git = "https://github.com/paritytech/js-precompiled.git", optional = true, branch = "v1" }
|
||||
parity-ui-precompiled = { git = "https://github.com/paritytech/js-precompiled.git", optional = true, branch = "master" }
|
||||
parity-ui-old-precompiled = { git = "https://github.com/js-dist-paritytech/parity-master-1-9-v1.git", optional = true }
|
||||
parity-ui-precompiled = { git = "https://github.com/js-dist-paritytech/parity-master-1-9-shell.git", optional = true }
|
||||
|
||||
[features]
|
||||
no-precompiled-js = ["parity-ui-dev", "parity-ui-old-dev"]
|
||||
|
@ -2,51 +2,39 @@
|
||||
set -e
|
||||
|
||||
# variables
|
||||
PVER="1-9"
|
||||
PTYPE="v1"
|
||||
UTCDATE=`date -u "+%Y%m%d-%H%M%S"`
|
||||
PRECOMPILED_BRANCH="v1"
|
||||
GIT_JS_PRECOMPILED="https://${GITHUB_JS_PRECOMPILED}:@github.com/paritytech/js-precompiled.git"
|
||||
PRE_REPO="js-dist-paritytech/parity-${CI_BUILD_REF_NAME}-${PVER}-${PTYPE}.git"
|
||||
PRE_REPO_TOKEN="https://${GITHUB_JS_PRECOMPILED}:@github.com/${PRE_REPO}"
|
||||
BASEDIR=`dirname $0`
|
||||
GITLOG=./.git/.git-release.log
|
||||
|
||||
# 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 "$GITHUB_EMAIL"
|
||||
git config user.name "GitLab Build Bot"
|
||||
}
|
||||
pushd $BASEDIR/..
|
||||
|
||||
# change into the build directory
|
||||
pushd $BASEDIR
|
||||
cd ../.dist
|
||||
echo "*** [$PRE_REPO] Cloning repo"
|
||||
rm -rf precompiled
|
||||
git clone https://github.com/$PRE_REPO precompiled
|
||||
cd precompiled
|
||||
git config push.default simple
|
||||
git config merge.ours.driver true
|
||||
git config user.email "$GITHUB_EMAIL"
|
||||
git config user.name "GitLab Build Bot"
|
||||
git remote set-url origin $PRE_REPO_TOKEN > /dev/null 2>&1
|
||||
|
||||
# add local files and send it up
|
||||
echo "*** [v1 precompiled] Setting up GitHub config for js-precompiled"
|
||||
rm -rf ./.git
|
||||
git init
|
||||
setup_git_user
|
||||
|
||||
echo "*** [v1 precompiled] Checking out $PRECOMPILED_BRANCH branch"
|
||||
git remote add origin $GIT_JS_PRECOMPILED
|
||||
git fetch origin 2>$GITLOG
|
||||
git checkout -b $PRECOMPILED_BRANCH
|
||||
|
||||
echo "*** [v1 precompiled] Committing compiled files for $UTCDATE"
|
||||
mv build ../build.new
|
||||
git add .
|
||||
git commit -m "$UTCDATE [update]"
|
||||
git merge origin/$PRECOMPILED_BRANCH -X ours --commit -m "$UTCDATE [merge]"
|
||||
git rm -r build
|
||||
echo "*** [$PRE_REPO] Copying build"
|
||||
rm -rf build
|
||||
git commit -m "$UTCDATE [cleanup]"
|
||||
mv ../build.new build
|
||||
cp -rf ../.dist/build .
|
||||
|
||||
echo "*** [$PRE_REPO] Adding to git"
|
||||
echo "$UTCDATE" >README.md
|
||||
git add .
|
||||
git commit -m "$UTCDATE [release]"
|
||||
git commit -m "$UTCDATE"
|
||||
|
||||
echo "*** [v1 precompiled] Merging remote"
|
||||
git push origin HEAD:refs/heads/$PRECOMPILED_BRANCH 2>$GITLOG
|
||||
echo "*** [$PRE_REPO] Pushing upstream"
|
||||
git push --quiet origin HEAD:refs/heads/master > /dev/null 2>&1
|
||||
|
||||
# move to root
|
||||
cd ..
|
||||
rm -rf precompiled
|
||||
popd
|
||||
|
||||
# exit with exit code
|
||||
|
@ -1 +1 @@
|
||||
// test script 14
|
||||
// test script 15
|
||||
|
5969
js/package-lock.json
generated
5969
js/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -44,6 +44,19 @@
|
||||
"test:coverage": "cross-env NODE_ENV=test istanbul cover _mocha -- --compilers ejs:ejsify 'src/**/*.spec.js'"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@parity/dapp-console": "paritytech/dapp-console",
|
||||
"@parity/dapp-dapp-accounts": "paritytech/dapp-dapp-accounts",
|
||||
"@parity/dapp-dapp-methods": "js-dist-paritytech/dapp-dapp-methods",
|
||||
"@parity/dapp-dapp-visible": "paritytech/dapp-dapp-visible",
|
||||
"@parity/dapp-dappreg": "paritytech/dapp-dappreg",
|
||||
"@parity/dapp-githubhint": "paritytech/dapp-githubhint",
|
||||
"@parity/dapp-localtx": "paritytech/dapp-localtx",
|
||||
"@parity/dapp-registry": "paritytech/dapp-registry",
|
||||
"@parity/dapp-signaturereg": "paritytech/dapp-signaturereg",
|
||||
"@parity/dapp-tokendeploy": "paritytech/dapp-tokendeploy",
|
||||
"@parity/dapp-tokenreg": "paritytech/dapp-tokenreg",
|
||||
"@parity/dapp-vaults": "paritytech/dapp-vaults",
|
||||
"@parity/dapp-web": "paritytech/dapp-web",
|
||||
"babel-cli": "6.26.0",
|
||||
"babel-core": "6.26.0",
|
||||
"babel-eslint": "7.1.1",
|
||||
@ -132,19 +145,6 @@
|
||||
"dependencies": {
|
||||
"@parity/api": "2.1.x",
|
||||
"@parity/dapp-accounts": "paritytech/dapp-accounts",
|
||||
"@parity/dapp-console": "paritytech/dapp-console",
|
||||
"@parity/dapp-dapp-accounts": "paritytech/dapp-dapp-accounts",
|
||||
"@parity/dapp-dapp-methods": "paritytech/dapp-dapp-methods",
|
||||
"@parity/dapp-dapp-visible": "paritytech/dapp-dapp-visible",
|
||||
"@parity/dapp-dappreg": "paritytech/dapp-dappreg",
|
||||
"@parity/dapp-githubhint": "paritytech/dapp-githubhint",
|
||||
"@parity/dapp-localtx": "paritytech/dapp-localtx",
|
||||
"@parity/dapp-registry": "paritytech/dapp-registry",
|
||||
"@parity/dapp-signaturereg": "paritytech/dapp-signaturereg",
|
||||
"@parity/dapp-tokendeploy": "paritytech/dapp-tokendeploy",
|
||||
"@parity/dapp-tokenreg": "paritytech/dapp-tokenreg",
|
||||
"@parity/dapp-vaults": "paritytech/dapp-vaults",
|
||||
"@parity/dapp-web": "paritytech/dapp-web",
|
||||
"@parity/plugin-signer-account": "paritytech/plugin-signer-account",
|
||||
"@parity/plugin-signer-default": "paritytech/plugin-signer-default",
|
||||
"@parity/plugin-signer-hardware": "paritytech/plugin-signer-hardware",
|
||||
|
@ -2,23 +2,18 @@
|
||||
set -e
|
||||
|
||||
# variables
|
||||
PVER="1-9"
|
||||
UTCDATE=`date -u "+%Y%m%d-%H%M%S"`
|
||||
BRANCH=$CI_BUILD_REF_NAME
|
||||
GIT_PARITY="https://${GITHUB_JS_PRECOMPILED}:@github.com/paritytech/parity.git"
|
||||
GITLOG=./.git/.git-release.log
|
||||
|
||||
# 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 "$GITHUB_EMAIL"
|
||||
git config user.name "GitLab Build Bot"
|
||||
}
|
||||
|
||||
echo "*** [cargo] Setting up GitHub config for parity"
|
||||
setup_git_user
|
||||
git remote set-url origin $GIT_PARITY
|
||||
git reset --hard origin/$BRANCH 2>$GITLOG
|
||||
git config push.default simple
|
||||
git config merge.ours.driver true
|
||||
git config user.email "$GITHUB_EMAIL"
|
||||
git config user.name "GitLab Build Bot"
|
||||
git remote set-url origin $GIT_PARITY > /dev/null 2>&1
|
||||
git reset --hard origin/$BRANCH 2>/dev/null
|
||||
git submodule update
|
||||
|
||||
if [ "$BRANCH" == "master" ]; then
|
||||
@ -34,15 +29,18 @@ if [ "$BRANCH" == "master" ]; then
|
||||
fi
|
||||
|
||||
echo "*** [cargo] Updating cargo parity-ui-precompiled"
|
||||
sed -i "/^parity-ui-precompiled/ { s/branch = \".*\"/branch = \"$BRANCH\"/g; }" dapps/ui/Cargo.toml
|
||||
sed -i "/^parity-ui-precompiled/ { s/git = \".*\"/git = \"https:\/\/github.com\/js-dist-paritytech\/parity-$BRANCH-$PVER-shell.git\"/g; }" dapps/ui/Cargo.toml
|
||||
cargo update -p parity-ui-precompiled
|
||||
|
||||
echo "*** [cargo] Updating cargo parity-ui-old-precompiled"
|
||||
sed -i "/^parity-ui-old-precompiled/ { s/git = \".*\"/git = \"https:\/\/github.com\/js-dist-paritytech\/parity-$BRANCH-$PVER-v1.git\"/g; }" dapps/ui/Cargo.toml
|
||||
cargo update -p parity-ui-old-precompiled
|
||||
|
||||
echo "*** [cargo] Committing updated files"
|
||||
git add dapps/ui/Cargo.toml
|
||||
git add Cargo.lock
|
||||
git commit -m "[ci skip] js-precompiled $UTCDATE"
|
||||
git push origin HEAD:refs/heads/$BRANCH 2>$GITLOG
|
||||
git push origin HEAD:refs/heads/$BRANCH 2>/dev/null
|
||||
|
||||
# exit with exit code
|
||||
exit 0
|
||||
|
@ -2,50 +2,39 @@
|
||||
set -e
|
||||
|
||||
# variables
|
||||
PVER="1-9"
|
||||
PTYPE="v1"
|
||||
UTCDATE=`date -u "+%Y%m%d-%H%M%S"`
|
||||
BRANCH=$CI_BUILD_REF_NAME
|
||||
GIT_JS_PRECOMPILED="https://${GITHUB_JS_PRECOMPILED}:@github.com/paritytech/js-precompiled.git"
|
||||
PRE_REPO="js-dist-paritytech/parity-${CI_BUILD_REF_NAME}-${PVER}-${PTYPE}.git"
|
||||
PRE_REPO_TOKEN="https://${GITHUB_JS_PRECOMPILED}:@github.com/${PRE_REPO}"
|
||||
BASEDIR=`dirname $0`
|
||||
GITLOG=./.git/.git-release.log
|
||||
|
||||
# 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 "$GITHUB_EMAIL"
|
||||
git config user.name "GitLab Build Bot"
|
||||
}
|
||||
pushd $BASEDIR/..
|
||||
|
||||
# change into the build directory
|
||||
pushd $BASEDIR
|
||||
cd ../.dist
|
||||
echo "*** [$PRE_REPO] Cloning repo"
|
||||
rm -rf precompiled
|
||||
git clone https://github.com/$PRE_REPO precompiled
|
||||
cd precompiled
|
||||
git config push.default simple
|
||||
git config merge.ours.driver true
|
||||
git config user.email "$GITHUB_EMAIL"
|
||||
git config user.name "GitLab Build Bot"
|
||||
git remote set-url origin $PRE_REPO_TOKEN > /dev/null 2>&1
|
||||
|
||||
# add local files and send it up
|
||||
echo "*** [v2 precompiled] Setting up GitHub config"
|
||||
rm -rf ./.git
|
||||
git init
|
||||
setup_git_user
|
||||
|
||||
echo "*** [v2 precompiled] Checking out $BRANCH branch"
|
||||
git remote add origin $GIT_JS_PRECOMPILED
|
||||
git fetch origin 2>$GITLOG
|
||||
git checkout -b $BRANCH
|
||||
|
||||
echo "*** [v2 precompiled] Committing compiled files for $UTCDATE"
|
||||
mv build ../build.new
|
||||
git add .
|
||||
git commit -m "$UTCDATE [update]"
|
||||
git merge origin/$BRANCH -X ours --commit -m "$UTCDATE [merge]"
|
||||
git rm -r build
|
||||
echo "*** [$PRE_REPO] Copying build"
|
||||
rm -rf build
|
||||
git commit -m "$UTCDATE [cleanup]"
|
||||
mv ../build.new build
|
||||
cp -rf ../.dist/build .
|
||||
|
||||
echo "*** [$PRE_REPO] Adding to git"
|
||||
echo "$UTCDATE" >README.md
|
||||
git add .
|
||||
git commit -m "$UTCDATE [release]"
|
||||
git commit -m "$UTCDATE"
|
||||
|
||||
echo "*** [v2 precompiled] Merging remote"
|
||||
git push origin HEAD:refs/heads/$BRANCH 2>$GITLOG
|
||||
echo "*** [$PRE_REPO] Pushing upstream"
|
||||
git push --quiet origin HEAD:refs/heads/master > /dev/null 2>&1
|
||||
|
||||
cd ..
|
||||
rm -rf precompiled
|
||||
popd
|
||||
|
||||
# exit with exit code
|
||||
|
@ -1 +1 @@
|
||||
// test script 19
|
||||
// test script 20
|
||||
|
@ -18,6 +18,7 @@
|
||||
const Api = require('@parity/api');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const rimraf = require('rimraf');
|
||||
const flatten = require('lodash.flatten');
|
||||
// const ReactIntlAggregatePlugin = require('react-intl-aggregate-webpack-plugin');
|
||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
@ -208,7 +209,7 @@ module.exports = {
|
||||
.map((dapp) => {
|
||||
const dir = path.join(__dirname, '../node_modules', dapp.package);
|
||||
|
||||
if (!fs.existsSync(path.join(dir, 'dist'))) {
|
||||
if (!fs.existsSync(dir)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -216,6 +217,15 @@ module.exports = {
|
||||
? dapp.id
|
||||
: Api.util.sha3(dapp.url);
|
||||
|
||||
if (!fs.existsSync(path.join(dir, 'dist'))) {
|
||||
rimraf.sync(path.join(dir, 'node_modules'));
|
||||
|
||||
return {
|
||||
from: path.join(dir),
|
||||
to: `dapps/${destination}/`
|
||||
};
|
||||
}
|
||||
|
||||
return [
|
||||
'icon.png', 'index.html', 'dist.css', 'dist.js',
|
||||
isProd ? null : 'dist.css.map',
|
||||
|
Loading…
Reference in New Issue
Block a user