| 1 |
MAILCOMMAND="/usr/sbin/sendmail" |
| 2 |
CONTENTTYPE="Content-Type: text/html" |
| 3 |
RECIPIENTS=( |
| 4 |
"[email protected]" |
| 5 |
) |
| 6 |
SUBJECT="Subject: ROL Test Summary $(date +%b-%d-%Y-at-%H:%M)\n\n" |
| 7 |
TEXT="To avoid complacency, you must follow this link:\n\n" |
| 8 |
LINK="https://testing.sandia.gov/cdash/index.php?project=Trilinos&date=now&filtercount=1&field1=site&compare1=63&value1=optimizer" |
| 9 |
|
| 10 |
if [ "$1" -eq "1" ];then |
| 11 |
TEXT="There are test errors!!! Follow this link, pronto:\n\n" |
| 12 |
fi |
| 13 |
|
| 14 |
MESSAGE=${SUBJECT}${TEXT}${LINK} |
| 15 |
echo -e ${MESSAGE} | ${MAILCOMMAND} ${RECIPIENTS[@]} |
| 16 |
|