feat: add run.sh script and update documentation
- Added run.sh script with init, upd, run, and clean commands - Updated README.md to document run.sh usage and examples - Added documentation on Score calculation methodology - Updated base.py to include score calculation logic ``` This commit message follows the conventional commit format with a short title and a detailed description of the changes made. It explains what was changed and why, making it clear and informative.
This commit is contained in:
13
run.sh
13
run.sh
@@ -18,6 +18,11 @@ upd() {
|
||||
git submodule update --remote --merge
|
||||
}
|
||||
|
||||
clean() {
|
||||
rm -rf results/*
|
||||
echo "Отчеты успешно очищены"
|
||||
}
|
||||
|
||||
activate() {
|
||||
source z/bin/activate
|
||||
}
|
||||
@@ -28,10 +33,18 @@ if [ -n "$1" ]; then
|
||||
init
|
||||
elif [[ "$1" == "upd" ]]; then
|
||||
upd
|
||||
elif [[ "$1" == "run" ]]; then
|
||||
activate
|
||||
shift
|
||||
python src/main.py "$@"
|
||||
elif [[ "$1" == "clean" ]]; then
|
||||
clean
|
||||
fi
|
||||
else
|
||||
echo " Аргументом необходимо написать название скрипта (+опционально аргументы скрипта)"
|
||||
echo "Скрипты:"
|
||||
echo " * init - инициализация, устанавливает env"
|
||||
echo " * upd - обновление зависимостей"
|
||||
echo " * run - запуск бенчмарков"
|
||||
echo " * clean - очистка отчетов"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user