ant-design/scripts/test-all.sh
偏右 a33dc19ec8
chore: 🛠 quit pub script when throw error (#26006)
* eslint

* chore: quit pub script when throw error

close #25965

https://stackoverflow.com/a/2871034

* revert
2020-08-04 15:35:03 +08:00

38 lines
573 B
Bash
Executable File

#!/bin/sh
echo "[TEST ALL] check-commit"
npm run check-commit
echo "[TEST ALL] lint"
npm run lint
if [ "$1" != "--skip-build" ]; then
echo "[TEST ALL] dist"
npm run dist
echo "[TEST ALL] compile"
npm run compile
else
echo "Skip build..."
fi
echo "[TEST ALL] dekko dist"
node ./tests/dekko/dist.test.js
echo "[TEST ALL] dist test"
LIB_DIR=dist npm test
echo "[TEST ALL] dekko lib"
echo "[TEST ALL] test es"
LIB_DIR=es npm test
echo "[TEST ALL] test lib"
LIB_DIR=lib npm test
echo "[TEST ALL] test"
npm test
echo "[TEST ALL] test node"
npm run test-node