relman-auto-nag/run_close_intermittents.sh

24 строки
408 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
# Close inactive intermittent bugs
python -m auto_nag.scripts.close_intermittents
# Send a mail if the logs are not empty
# MUST ALWAYS BE THE LAST COMMAND
python -m auto_nag.log --send
deactivate