mirror of
https://github.com/truenas/apps.git
synced 2026-10-12 02:23:46 +00:00
* Speed up dev scripts * fix env * dramatically simplify the script and fix few minor bugs found in the way. Such us: - ix app was using version for app_version and then bumping version making the 2 disagree again. - side script (zz.py) was wrongly getting git added date in some cases, now its incorporated in this script * add devbox script
46 lines
1.8 KiB
JSON
46 lines
1.8 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.16.0/.schema/devbox.schema.json",
|
|
"packages": [
|
|
"[email protected]",
|
|
"python311Packages.pytest",
|
|
"python311Packages.pytest-cov",
|
|
"python311Packages.bcrypt",
|
|
"python311Packages.pydantic",
|
|
"git@latest",
|
|
"python311Packages.pyyaml@latest",
|
|
"python311Packages.docker@latest"
|
|
],
|
|
"shell": {
|
|
"init_hook": [],
|
|
"scripts": {
|
|
"ports": ["./.github/scripts/port_validation.py"],
|
|
"all-metadata": ["./.github/scripts/generate_metadata.py \"$@\""],
|
|
"metadata": [
|
|
"./.github/scripts/generate_metadata.py --train \"$1\" --app \"$2\""
|
|
],
|
|
"lib-test": [
|
|
"pytest library/ -vvv",
|
|
"rm -r library/**/__pycache__",
|
|
"rm -r library/**/tests/__pycache__"
|
|
],
|
|
"app-test": [
|
|
"./.github/scripts/ci.py --train \"$1\" --app \"$2\" --test-file \"${3:-basic-values.yaml}\" --wait=true",
|
|
"./.github/scripts/generate_metadata.py --train \"$1\" --app \"$2\""
|
|
],
|
|
"app-render": [
|
|
"./.github/scripts/ci.py --train \"$1\" --app \"$2\" --test-file \"${3:-basic-values.yaml}\" --render-only=true",
|
|
"./.github/scripts/generate_metadata.py --train \"$1\" --app \"$2\""
|
|
],
|
|
"app-render-debug": [
|
|
"./.github/scripts/ci.py --train \"$1\" --app \"$2\" --test-file \"${3:-basic-values.yaml}\" --render-only-debug=true"
|
|
],
|
|
"copy-lib": [
|
|
"docker run --platform linux/amd64 --quiet --rm -e FAKE_ENV=1 -v $PWD:/workspace ghcr.io/truenas/apps_validation:latest apps_catalog_hash_generate --path /workspace"
|
|
],
|
|
"validate": [
|
|
"docker run --platform linux/amd64 --quiet --rm -e FAKE_ENV=1 -v $PWD:/workspace ghcr.io/truenas/apps_validation:latest apps_dev_charts_validate validate --path /workspace"
|
|
]
|
|
}
|
|
}
|
|
}
|