2017-01-08 17:04:09 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-02-03 15:58:27 +08:00
|
|
|
echo "[TEST ALL] test changlog"
|
|
|
|
node ./scripts/check-version-md.js
|
|
|
|
|
2020-08-04 15:35:03 +08:00
|
|
|
echo "[TEST ALL] check-commit"
|
|
|
|
npm run check-commit
|
|
|
|
|
|
|
|
echo "[TEST ALL] lint"
|
|
|
|
npm run lint
|
|
|
|
|
2021-02-28 15:10:00 +08:00
|
|
|
if [ "$1" != "--skip-build" ]; then
|
|
|
|
echo "[TEST ALL] dist"
|
|
|
|
npm run dist
|
2021-02-03 01:27:12 +08:00
|
|
|
|
2021-02-28 15:10:00 +08:00
|
|
|
echo "[TEST ALL] compile"
|
|
|
|
npm run compile
|
|
|
|
else
|
|
|
|
echo "Skip build..."
|
|
|
|
fi
|
2020-06-02 16:28:40 +08:00
|
|
|
|
|
|
|
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"
|
2017-06-30 15:29:28 +08:00
|
|
|
npm run test-node
|