relman-auto-nag/run_code_freeze_week.sh

25 строки
489 B
Bash
Executable File

#!/bin/bash
set -e
export PYTHONPATH=.
./runauto_nag_common.sh
. venv/bin/activate
# force the update of dependencies
pip install -r requirements.txt
# Clean the log files
python -m auto_nag.log --clean
# Code freeze week information for release managers
# Daily (but really runs during the soft freeze week)
python -m auto_nag.scripts.code_freeze_week -D yesterday
# Send a mail if the logs are not empty
# MUST ALWAYS BE THE LAST COMMAND
python -m auto_nag.log --send
deactivate