chore(M00-A): 建立单仓库基线和参考清单
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
curl -fsS --max-time 10 https://api.txyundm.cn/app-api/health
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
echo "WSL env:"
|
||||
uname -a
|
||||
command -v bash >/dev/null
|
||||
command -v git >/dev/null
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ssh -T -p 2222 git@git.txyundm.cn
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd /mnt/d/qipai
|
||||
test "$(git rev-parse --show-toplevel)" = "/mnt/d/qipai"
|
||||
test "$(git branch --show-current)" = "main"
|
||||
git status --short --branch --untracked-files=all
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
rm -rf "${HOME}/qipai-wsl-test"
|
||||
echo "Cleaned ${HOME}/qipai-wsl-test"
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
echo "MQTT smoke test placeholder. Configure host/user/password outside Git before use."
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
src="/mnt/d/qipai"
|
||||
dst="${HOME}/qipai-wsl-test"
|
||||
rm -rf "${dst}"
|
||||
mkdir -p "${dst}"
|
||||
rsync -a --exclude .git --exclude node_modules --exclude dist --exclude build "${src}/" "${dst}/"
|
||||
echo "Prepared ${dst}"
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd /mnt/d/qipai
|
||||
bash -n setup.sh
|
||||
for file in scripts/dev/wsl/*.sh; do
|
||||
bash -n "$file"
|
||||
done
|
||||
echo "PASS: Linux shell syntax checks passed."
|
||||
|
||||
Reference in New Issue
Block a user