mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-05 00:53:56 +08:00
🤞 Sync 2026-09-27 22:16:29
This commit is contained in:
1 parent
8ede4a8320
commit
618f51e9dc
459 files changed
+44817
-2191
No files matched your search
+36
@@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
root="$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)"
|
||||
cd "$root"
|
||||
|
||||
./scripts/check-version-sync.sh
|
||||
./scripts/check-readme.sh
|
||||
./scripts/check-apk-trust.sh
|
||||
find runtime scripts -type f -name '*.sh' -exec sh -n {} +
|
||||
find luci -type f -name '*.js' -exec node --check {} +
|
||||
node ./scripts/test-overview-ui.js
|
||||
PYTHONPYCACHEPREFIX="$root/build/pycache" \
|
||||
python3 -m py_compile scripts/pack-ipk.py scripts/po2lmo.py scripts/test-po2lmo.py
|
||||
PYTHONPYCACHEPREFIX="$root/build/pycache" \
|
||||
python3 ./scripts/test-po2lmo.py
|
||||
python3 - <<'PY'
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
for path in Path("luci").glob("*.json"):
|
||||
json.loads(path.read_text())
|
||||
print(f"json OK: {path}")
|
||||
PY
|
||||
./scripts/test-runtime.sh
|
||||
./scripts/build-ipk.sh
|
||||
# The staged tree is exactly what lands on the router, so check it rather than
|
||||
# the sources: the build host has GNU coreutils and the router does not.
|
||||
./scripts/check-busybox-compat.sh "${BUILD_DIR:-$root/build/ipk}/stage"
|
||||
first="$(sha256sum dist/*.ipk | awk '{print $1}')"
|
||||
./scripts/build-ipk.sh
|
||||
second="$(sha256sum dist/*.ipk | awk '{print $1}')"
|
||||
[ "$first" = "$second" ]
|
||||
git diff --check 2>/dev/null || true
|
||||
printf 'ci-check OK\n'
|
||||
Reference in new issue
Block a user