File: start-queue-win.sh

package info (click to toggle)
qtwebkit-opensource-src 5.7.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 291,692 kB
  • ctags: 268,122
  • sloc: cpp: 1,360,420; python: 70,286; ansic: 42,986; perl: 35,476; ruby: 12,236; objc: 9,465; xml: 8,396; asm: 3,873; yacc: 2,397; sh: 1,647; makefile: 650; lex: 644; java: 110
file content (52 lines) | stat: -rwxr-xr-x 1,358 bytes parent folder | download | duplicates (3)
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
#!/bin/sh
export WEBKIT_BUGZILLA_USERNAME=$1
export WEBKIT_BUGZILLA_PASSWORD=$2
export BOT_ID=$3

function error_handler()
{
    start_ews
}

function start_ews()
{
    trap 'error_handler ${LINENO} $?' ERR

    while :
    do
        date
        echo "TASK: cleaning up old log files."
        cd ~/win-ews-logs
        rm -rf win-ews.old
        mv win-ews.log win-ews.old
        find ~/win-ews-logs -mtime +7 -exec rm -f {} \;
        echo "TASK: Starting up"
        cd ~/WebKit
        echo "TASK: Cleaning WebKitBuild"
        rm -rf WebKitBuild
        date
        echo "TASK: Cleaning up"
        svn cleanup
        date
        echo "TASK: svn revert -R *"
        svn revert -R *
        date
        echo "TASK: svn status"
        svn status | grep "?" | awk '{print $2}' | xargs rm -rf
        date
        echo "TASK: webkit-patch clean"
        ~/WebKit/Tools/Scripts/webkit-patch clean
        date
        echo "TASK: svn up --non-interactive"
        svn up --non-interactive
        date
        echo "TASK: kill orphaned tasks"
        taskkill.exe /f /im cl.exe
        echo "TASK: webkit-patch win-ews"
        ~/WebKit/Tools/Scripts/webkit-patch win-ews --bot-id=$BOT_ID --no-confirm --exit-after-iteration 10
        echo "TASK: kill old processes"
        ~/WebKit/Tools/BuildSlaveSupport/kill-old-processes
    done
}

start_ews