Remove ewstool scripts used by chromium port
[WebKit-https.git] / Tools / EWSTools / start-queue-win.sh
1 #!/bin/sh
2 export WEBKIT_BUGZILLA_USERNAME=$1
3 export WEBKIT_BUGZILLA_PASSWORD=$2
4 export BOT_ID=$3
5
6 function error_handler()
7 {
8     start_ews
9 }
10
11 function start_ews()
12 {
13     trap 'error_handler ${LINENO} $?' ERR
14
15     while :
16     do
17         date
18         echo "TASK: cleaning up old log files."
19         cd ~/win-ews-logs
20         rm -rf win-ews.old
21         mv win-ews.log win-ews.old
22         find ~/win-ews-logs -mtime +7 -exec rm -f {} \;
23         echo "TASK: Starting up"
24         cd ~/WebKit
25         export VSINSTALLDIR="$PROGRAMFILES\Microsoft Visual Studio 12.0"
26         echo "TASK: Cleaning WebKitBuild"
27         rm -rf WebKitBuild
28         date
29         echo "TASK: Cleaning up"
30         svn cleanup
31         date
32         echo "TASK: svn revert -R *"
33         svn revert -R *
34         date
35         echo "TASK: svn status"
36         svn status | grep "?" | awk '{print $2}' | xargs rm -rf
37         date
38         echo "TASK: webkit-patch clean"
39         ~/WebKit/Tools/Scripts/webkit-patch clean
40         date
41         echo "TASK: svn up --non-interactive"
42         svn up --non-interactive
43         date
44         echo "TASK: kill orphaned tasks"
45         taskkill.exe /f /im cl.exe
46         echo "TASK: test-webkitpy"
47         ~/WebKit/Tools/Scripts/test-webkitpy
48         echo "TASK: webkit-patch win-ews"
49         ~/WebKit/Tools/Scripts/webkit-patch win-ews --bot-id=$BOT_ID --no-confirm --exit-after-iteration 10
50         echo "TASK: kill old processes"
51         ~/WebKit/Tools/BuildSlaveSupport/kill-old-processes
52     done
53 }
54
55 start_ews
56