summaryrefslogtreecommitdiff
path: root/cad/src/tools/SEMBot/runSEMBot.sh
blob: 7240af46dea12e0d2ae45ff62fb20212a50a4b46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh

# Usage: ./runSEMBot.sh &> SEMBot.log

# Create timestamp
echo `date +"%a %b %e %T EDT %Y"` > SEMBot.timestamp

# Remove files used to check for command successes
rm -f SVN-D/cad/src/epydoc.config

# Update codebase
svn update 
cd SVN-D
svn update
cd ..
if [ "$LC_ALL" = "" ]
then
  LC_ALL="C"
  export LC_ALL
fi

# Check if the codebase update was successful by checking for the existence of
# the file we deleted earlier.
if [ ! -e SVN-D/cad/src/epydoc.config ]; then
  RESULT="<font color=red>Failed</font>"
else
  RESULT=Success
fi
echo ${RESULT} > NE1_Docs.result

# Run API documentation generation
echo "Running updateNE1_Documentation.sh, output in NE1_Docs.log"
./updateNE1_Documentation.sh &>NE1_Docs.log
echo "Running updateNV1_Documentation.sh, output in NV1_Docs.log"
./updateNV1_Documentation.sh &>NV1_Docs.log
echo "Running updateHDF5_Documentation.sh, output in HDF5_Docs.log"
./updateHDF5_Documentation.sh &> HDF5_Docs.log

#
# QA Test Harness
#
# Create the QA Test Harness timestamp
echo `date +"%a %b %e %T EDT %Y"` > QA_TestHarness.timestamp

# Run Pylint
echo "Running runPylint.sh, output in Pylint.log"
./runPylint.sh &> Pylint.log
if [ `grep -c Traceback Pylint.log` != 0 ]; then
  RESULT="<font color=red>Failed</font>"
else
  RESULT=Success
fi
echo ${RESULT} > QA_TestHarness.result

# Run dependency cycles discovery script
./updateDependencyGraphs.sh &> DependencyCycles.log

# Run nightly build
#./runNightlyBuild.sh &>NightlyBuild.log

REVNUM=`svn info | grep "Revision:" | cut -d ":" -f 2`
echo "Completed on revision:$REVNUM" > SEMBot.result