ddb41ab620
PR checks / web (pull_request) Successful in 44s
PR checks / java (pull_request) Successful in 1m1s
Main: tests, deploy, autotests / web (push) Successful in 41s
Main: tests, deploy, autotests / java (push) Successful in 56s
Main: tests, deploy, autotests / images-app (push) Successful in 42s
Main: tests, deploy, autotests / images-web (push) Successful in 1m5s
Main: tests, deploy, autotests / deploy (push) Successful in 1m32s
Main: tests, deploy, autotests / autotests (push) Successful in 1m18s
Main: tests, deploy, autotests / rollback (push) Has been skipped
Корневой mise.toml пинит java temurin-17, maven 3.9.16, node 24, python 3.15 и задачи (verify/app-package/app-run/web-*/prod-tests); bootstrap.sh/.ps1 скачивают mise v2026.10.19 в ./.mise/bin (gitignored, вне системы); обёртки mise.sh/.ps1 зовут его без PATH/активации шелла. prod-autotests/mise.toml удалён — дубль корневого (venv тем же путём). AGENTS.md синхронизирован.
33 lines
1.3 KiB
Bash
Executable File
33 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
# Скачивает mise в ./.mise/bin (без установки в систему) и ставит инструменты проекта.
|
|
set -eu
|
|
MISE_VERSION=2026.10.19
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
os=$(uname -s)
|
|
arch=$(uname -m)
|
|
case "$os" in
|
|
Linux) case "$arch" in
|
|
x86_64) plat=linux-x64 ;;
|
|
aarch64) plat=linux-arm64 ;;
|
|
*) echo "неподдерживаемая архитектура: $arch" >&2; exit 1 ;;
|
|
esac ;;
|
|
Darwin) case "$arch" in
|
|
x86_64) plat=darwin-x64 ;;
|
|
arm64) plat=darwin-arm64 ;;
|
|
*) echo "неподдерживаемая архитектура: $arch" >&2; exit 1 ;;
|
|
esac ;;
|
|
*) echo "запустите bootstrap.ps1 (Windows) или скачайте mise вручную" >&2; exit 1 ;;
|
|
esac
|
|
url="https://github.com/jdx/mise/releases/download/v${MISE_VERSION}/mise-v${MISE_VERSION}-${plat}.tar.xz"
|
|
tmp=$(mktemp -d)
|
|
trap 'rm -rf "$tmp"' EXIT
|
|
curl -fsSL "$url" -o "$tmp/mise.tar.xz"
|
|
tar xJf "$tmp/mise.tar.xz" -C "$tmp"
|
|
mkdir -p "$root/.mise/bin"
|
|
mv "$tmp/mise/bin/mise" "$root/.mise/bin/mise"
|
|
chmod +x "$root/.mise/bin/mise"
|
|
"$root/.mise/bin/mise" trust
|
|
"$root/.mise/bin/mise" install
|
|
"$root/.mise/bin/mise" run web-install
|
|
echo "готово: ./mise.sh run verify"
|