Replacing nightly_build folder with nightly_build.py and bash script
Created by: Thomas-J-Kidd
There are two files added in this PR that remove the folder called nightly_build/ in the bin directory:
- nightly_build.py
- wrapper_nightly_runs.sh
The wrapper script can be executed by a cron job, which sources the setup_host.sh file and then executes the python script to do the nightly regression. The wrapper script also sources the .bashrc
file. In addition the wrapper script is specific to my system at the moment. I am not sure how to get around this. Any suggestions are welcomed. I use the $HOME
variable, but my cvw
is not in $HOME
. Its one directory deeper. If wanted for the PR, I can edit this.
The wrapper script can be added to Cron the following way (this will execute at 3 AM):
0 3 * * * BASH_ENV=~/.bashrc bash -l -c "*PATH TO CVW*/cvw/bin/wrapper_nightly_runs.sh > *PATH TO LOG LOCATION*/cron.log"
The python script will do the following functions:
-
Nightly Regression Builds: The script is scheduled to run on a nightly basis through the wrapper bash script, by making and executing the tests.
-
Markdown Report Generation: Upon completion of the tests, the script generates detailed reports in Markdown format.
-
Email Notification: The script is configured to send out email notifications summarizing the regression test results. Emails can be added through a list. This can be upgraded to read CVS files later on.