2017-01-08 17:04:09 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-02-23 21:56:43 +08:00
|
|
|
echo "[TEST ALL] test changelog"
|
|
|
|
echo "[TEST ALL] test changelog" > ~test-all.txt
|
2023-04-28 16:08:39 +08:00
|
|
|
# node ./scripts/check-version-md.ts
|
2021-02-03 15:58:27 +08:00
|
|
|
|
2020-08-04 15:35:03 +08:00
|
|
|
echo "[TEST ALL] check-commit"
|
2022-11-08 11:34:24 +08:00
|
|
|
echo "[TEST ALL] check-commit" > ~test-all.txt
|
2020-08-04 15:35:03 +08:00
|
|
|
npm run check-commit
|
|
|
|
|
|
|
|
echo "[TEST ALL] lint"
|
2022-11-08 11:34:24 +08:00
|
|
|
echo "[TEST ALL] lint" > ~test-all.txt
|
2020-08-04 15:35:03 +08:00
|
|
|
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
|
2020-06-02 16:28:40 +08:00
|
|
|
|
|
|
|
echo "[TEST ALL] dekko dist"
|
2022-11-08 11:34:24 +08:00
|
|
|
echo "[TEST ALL] dekko dist" > ~test-all.txt
|
2020-06-02 16:28:40 +08:00
|
|
|
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
|
2020-06-02 16:28:40 +08:00
|
|
|
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
|
|
|
|
|
2020-06-02 16:28:40 +08:00
|
|
|
echo "[TEST ALL] test es"
|
2022-11-08 11:34:24 +08:00
|
|
|
echo "[TEST ALL] test es" > ~test-all.txt
|
2020-06-02 16:28:40 +08:00
|
|
|
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
|
|
|
|
|
2020-06-02 16:28:40 +08:00
|
|
|
echo "[TEST ALL] test"
|
2022-11-08 11:34:24 +08:00
|
|
|
echo "[TEST ALL] test" > ~test-all.txt
|
2020-06-02 16:28:40 +08:00
|
|
|
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
|