@@ -14,32 +14,27 @@ setup:
1414 rustup target add wasm32-unknown-unknown
1515 command -v cargo-binstall || curl -L --proto ' =https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
1616 command -v cargo-component || cargo binstall cargo-component -y
17- if ! command -v node; then \
18- if [ " $$ OS" = " Windows_NT" ]; then \
19- curl -sS https://webi.sh/node | sh; \
20- else \
21- curl.exe https://webi.ms/node | powershell; \
22- fi \
23- fi
17+ command -v node || { echo ' Please install Node.js manually' ; exit 1; }
2418 command -v jco || npm install -g @bytecodealliance/jco
2519 command -v deno || curl -fsSL https://deno.land/install.sh | sh
2620 command -v bun || curl -fsSL https://bun.sh/install | bash
21+ command -v python3 || { echo ' Please install Python manually' ; exit 1; }
2722 command -v wit-bindgen || cargo binstall --git https://github.com/bytecodealliance/wit-bindgen wit-bindgen-cli -y
2823 command -v static-web-server || cargo binstall static-web-server -y
2924 command -v wasm-tools || cargo binstall wasm-tools -y
3025
3126test-js :
32- cd tests/js; \
27+ set -e ; cd tests/js; \
3328 [ -d node_modules ] || npm install; \
3429 npm run build; \
3530 npm test
3631
3732test-rs :
3833 # https://github.com/bytecodealliance/wasmtime/issues/7784
39- # cargo test -p tests-rs
34+ cargo test -p tests-rs || true
4035
4136test-py :
42- cd tests/py; \
37+ set -e ; cd tests/py; \
4338 [ -d .venv ] || $(MAKE ) venv; \
4439 $(MAKE ) fetch; \
4540 $(MAKE ) build; \
@@ -48,7 +43,7 @@ test-py:
4843test : test-js test-rs test-py
4944
5045publish :
51- version=$$(cargo pkgid | cut -d'#' -f2 | cut -d'@' -f2 ) ; \
46+ set -e ; version=$$(cargo pkgid | cut -d'#' -f2 | cut -d'@' -f2 ) ; \
5247 echo -n | gh release create \
5348 " v$$ version" \
5449 --generate-notes \
0 commit comments