New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79894


Ignore:
Timestamp:
06/28/11 22:19:11 (4 years ago)
Author:
jmr@…
Message:

update buildbot cfg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • users/jmr/master.cfg

    r79885 r79894  
    123123                           'SRC_PREFIX': WithProperties("%(workdir)s/opt/mports")})) 
    124124# sign generated binaries and sync to download server (if distributable) 
    125 opensslcmd = '/usr/bin/openssl' 
    126 # FIXME: configure these 
    127 prefix='../opt/local' 
    128 # private key to use for signing 
    129 privkey='' 
    130 # download server hostname and path where it keeps archives 
    131 dlhost='mparchives.local' 
    132 dlpath='/archives' 
    133 ports_factory.addStep(ShellCommand(command=[ 
    134 """for port in `cat portlist`; do 
    135     if [[ -f logs-*/success/${port}.log ]]; then 
    136         if ./mpexport/base/portmgr/jobs/port_binary_distributable.tcl ${port}; then 
    137             echo $port is distributable 
    138             portversion=$("""+prefix+"""/bin/port info --version --line ${portName}) 
    139             portrevision=$("""+prefix+"""/bin/port info --revision --line ${portName}) 
    140             for archive in """+prefix+"""/var/macports/software/${portname}/${portname}-${portversion}_${portrevision}[+.]*; do 
    141                 aname=$(basename $archive) 
    142                 echo deploying archive: $aname 
    143                 openssl dgst -ripemd160 -sign """+privkey+""" -out ./${aname}.rmd160 ${archive} 
    144                 ssh """+dlhost+""" mkdir -p """+dlpath+"""/${portname} 
    145                 rsync -av --ignore-existing ./${aname}.rmd160 ${archive} """+dlhost+""":"""+dlpath+"""/${portname} 
    146                 rm ./${aname}.rmd160 
    147             done 
    148         fi 
    149     fi 
    150 done 
    151 """])) 
     125ports_factory.addStep(ShellCommand(command=["./deploy_archives.sh"])) 
    152126 
    153127# make a logfile summarising the success/failure status for each port 
    154 ports_factory.addStep(ShellCommand(command=[ 
    155 """rm -f portstatus.log 
    156 for port in `cat portlist`; do 
    157     if [[ -f logs-*/success/${port}.log ]]; then 
    158         echo "[OK] ${port}" >> portstatus.log 
    159     elif [[ -f logs-*/failure/${port}.log ]]; then 
    160         echo "[FAIL] ${port}" >> portstatus.log 
    161         # send email to appropriate places 
    162         portmaintainers=$("""+prefix+"""/bin/port info --maintainers --line ${port} | tr ',' ' ') 
    163         for maint in $portmaintainers; do 
    164             if [[ "$maint" != "nomaintainer@macports.org" && "$maint" != "openmaintainer@macports.org" ]]; then 
    165                 # email maintainer 
    166                 echo "not emailing $maint (not set up yet)" 
    167             fi 
    168             # also send to some new mailing list? 
    169         done 
    170     fi 
    171 done 
    172 """], logfiles={"portstatus": "portstatus.log"})) 
    173 ports_factory.addStep(ShellCommand(command=["rm -r ./logs-*"])) 
     128ports_factory.addStep(ShellCommand(command=["./do_status.sh"], 
     129                        logfiles={"portstatus": "portstatus.log"})) 
     130# do we want to upload the individual logs so maintainers can review them? 
     131ports_factory.addStep(ShellCommand(command=['rm -rf ./logs-*'])) 
    174132 
    175133from buildbot.config import BuilderConfig 
Note: See TracChangeset for help on using the changeset viewer.