mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-01 18:01:06 +00:00
Speed up examples CI builder (#572)
No need to `npm install` a bunch of times, we only need to do it once!
This commit is contained in:
parent
67b43ee389
commit
66649018ae
@ -51,13 +51,14 @@ matrix:
|
|||||||
# All examples work
|
# All examples work
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
env: JOB=examples-build
|
env: JOB=examples-build
|
||||||
install: *INSTALL_NODE_VIA_NVM
|
before_install: *INSTALL_NODE_VIA_NVM
|
||||||
|
install: npm ci --verbose
|
||||||
script:
|
script:
|
||||||
- mkdir node_modules
|
|
||||||
- |
|
- |
|
||||||
for dir in `ls examples | grep -v README | grep -v asm.js | grep -v no_modules`; do
|
for dir in `ls examples | grep -v README | grep -v asm.js | grep -v no_modules`; do
|
||||||
(cd examples/$dir &&
|
(cd examples/$dir &&
|
||||||
sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json &&
|
sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json &&
|
||||||
|
sed -i 's/npm install//' build.sh &&
|
||||||
ln -s ../../node_modules . &&
|
ln -s ../../node_modules . &&
|
||||||
./build.sh) || exit 1;
|
./build.sh) || exit 1;
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user