ant-design/scripts/test-all.sh

53 lines
1.1 KiB
Bash
Raw Normal View History

#!/bin/sh
echo "[TEST ALL] test changelog"
echo "[TEST ALL] test changelog" > ~test-all.txt
2022-11-18 13:56:15 +08:00
# node ./scripts/check-version-md.js
echo "[TEST ALL] check-commit"
2022-11-08 11:34:24 +08:00
echo "[TEST ALL] check-commit" > ~test-all.txt
npm run check-commit
echo "[TEST ALL] lint"
2022-11-08 11:34:24 +08:00
echo "[TEST ALL] lint" > ~test-all.txt
npm run lint
2021-02-28 15:10:00 +08:00
if [ "$1" != "--skip-build" ]; then
echo "[TEST ALL] dist"
2022-11-08 11:34:24 +08:00
echo "[TEST ALL] dist" > ~test-all.txt
2021-02-28 15:10:00 +08:00
npm run dist
2021-02-03 01:27:12 +08:00
2021-02-28 15:10:00 +08:00
echo "[TEST ALL] compile"
2022-11-08 11:34:24 +08:00
echo "[TEST ALL] compile" > ~test-all.txt
2021-02-28 15:10:00 +08:00
npm run compile
else
2022-07-06 10:02:29 +08:00
echo "Skip build..."
2021-02-28 15:10:00 +08:00
fi
echo "[TEST ALL] dekko dist"
2022-11-08 11:34:24 +08:00
echo "[TEST ALL] dekko dist" > ~test-all.txt
node ./tests/dekko/dist.test.js
echo "[TEST ALL] dist test"
2022-11-08 11:34:24 +08:00
echo "[TEST ALL] dist test" > ~test-all.txt
LIB_DIR=dist npm test
2022-11-22 18:18:48 +08:00
echo "[TEST ALL] dekko lib"
echo "[TEST ALL] dekko lib" > ~test-all.txt
echo "[TEST ALL] test es"
2022-11-08 11:34:24 +08:00
echo "[TEST ALL] test es" > ~test-all.txt
LIB_DIR=es npm test
2022-11-22 18:18:48 +08:00
echo "[TEST ALL] test lib"
echo "[TEST ALL] test lib" > ~test-all.txt
LIB_DIR=lib npm test
echo "[TEST ALL] test"
2022-11-08 11:34:24 +08:00
echo "[TEST ALL] test" > ~test-all.txt
npm test
echo "[TEST ALL] test node"
2022-11-08 11:34:24 +08:00
echo "[TEST ALL] test node" > ~test-all.txt
2017-06-30 15:29:28 +08:00
npm run test-node