Skip to content

Commit 6cb979f

Browse files
author
Weblate
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents a8ddf52 + 10ee9f4 commit 6cb979f

3 files changed

Lines changed: 26 additions & 18 deletions

File tree

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"build:res": "node scripts/copy-res.js",
3232
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
3333
"build:compile": "npm run reskindex && babel --source-maps -d lib src",
34-
"build:bundle": "cross-env NODE_ENV=production webpack -p --progress",
35-
"build:bundle:dev": "webpack --optimize-occurence-order --progress",
34+
"build:bundle": "cross-env NODE_ENV=production webpack -p --progress --bail",
35+
"build:bundle:dev": "webpack --optimize-occurence-order --progress --bail",
3636
"build:electron": "npm run clean && npm run build && npm run install:electron && build -wml --ia32 --x64",
3737
"build": "npm run reskindex && npm run build:res && npm run build:bundle",
3838
"build:dev": "npm run reskindex && npm run build:res && npm run build:bundle:dev",

‎scripts/fetch-develop.deps.sh‎

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,42 +49,47 @@ function dodep() {
4949
[ "$curbranch" != 'develop' ] && clone $org $repo develop
5050
} || return $?
5151

52-
(
53-
cd $repo
54-
echo "$repo set to branch "`git rev-parse --abbrev-ref HEAD`
55-
)
52+
echo "$repo set to branch "`git -C "$repo" rev-parse --abbrev-ref HEAD`
5653

5754
mkdir -p node_modules
5855
rm -r "node_modules/$repo" 2>/dev/null || true
5956
ln -sv "../$repo" node_modules/
57+
58+
(
59+
cd $repo
60+
npm install
61+
)
6062
}
6163

64+
##############################
65+
6266
echo -en 'travis_fold:start:matrix-js-sdk\r'
6367
echo 'Setting up matrix-js-sdk'
6468

6569
dodep matrix-org matrix-js-sdk
66-
(
67-
cd node_modules/matrix-js-sdk
68-
npm install
69-
)
7070

7171
echo -en 'travis_fold:end:matrix-js-sdk\r'
7272

73+
##############################
74+
7375
echo -en 'travis_fold:start:matrix-react-sdk\r'
7476
echo 'Setting up matrix-react-sdk'
7577

7678
dodep matrix-org matrix-react-sdk
7779

78-
mkdir -p node_modules/matrix-react-sdk/node_modules
80+
# replace the version of js-sdk that got pulled into react-sdk with a symlink
81+
# to our version. Make sure to do this *after* doing 'npm i' in react-sdk,
82+
# otherwise npm helpfully moves another-json from matrix-js-sdk/node_modules
83+
# into matrix-react-sdk/node_modules.
84+
#
85+
# (note this matches the instructions in the README.)
86+
rm -r node_modules/matrix-react-sdk/node_modules/matrix-js-sdk
7987
ln -s ../../matrix-js-sdk node_modules/matrix-react-sdk/node_modules/
8088

81-
(
82-
cd node_modules/matrix-react-sdk
83-
npm install
84-
)
85-
8689
echo -en 'travis_fold:end:matrix-react-sdk\r'
8790

91+
##############################
92+
8893
# Link the reskindex binary in place: if we used npm link,
8994
# npm would do this for us, but we don't because we'd have
9095
# to define the npm prefix somewhere so it could put the

‎scripts/jenkins.sh‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ nvm use 6
88

99
set -x
1010

11-
# check out corresponding branches of dependencies
12-
`dirname $0`/fetch-develop.deps.sh
11+
# check out corresponding branches of dependencies.
12+
#
13+
# clone the deps with depth 1: we know we will only ever need that one
14+
# commit.
15+
`dirname $0`/fetch-develop.deps.sh --depth 1
1316

1417
npm install
1518

0 commit comments

Comments
 (0)