The steps of daily build (for Monitor project):
1. Clean up the working directory.
2. Get cvs change logs.
- Get the cvs change log of today. If the change log is empty then stop building.
- Get the cvs change log of all.
3. Get the source codes from cvs.
4. Increase the version of the project, then commit into the cvs.
5. Compile the solution.
-------------------------
6. Execute the unit test.
- NUnit Test. (Only when compile succeed.)
- JSUnit Test. (step 9)
7. Create the help files.
- NDoc. (Only when compile succeed.)
- JSDoc.
8. Copy the files to the result directory, and backup them into one compressed file.
- Source codes.
- * Complile result files (dlls and js files).
- * NDoc result files.
- JSDoc result files.
- All log files.
note: The items with "*" will only be copied when the compile (step 5) is succeeded.
9. Copy files for JSUnit to asp.net client directory, and create the virtual directories.
10. Send email to project members.
- When build failed: tell the reason.
- When cvs change log of today is empty: tell the reason.
- When compile success: succeed build. The mail include: file links, jsunit test links, cvs_today.log, nunit_test.log.
- When compile failure: failed build. The mail include: log links, jsunit test links, cvs_today.log, compile.log.
Note:
1. The daily build will send a mail notify the result whenever the build is succeeded, failed or stopped.
2. When the change log of today is empty, stop the build.
3. UnitTest and Create Doc failure will not cause the build failure.