ReleaseEngineering/How To/Setup Allthethings

< ReleaseEngineering‎ | How To
Revision as of 18:18, 15 June 2015 by SelenaDeckelmann (talk | contribs) (Created page with "How to set up a development environment to create `allthethings.json`. == Base install == <pre> #!/bin/bash cd /home/buildduty/allthethings source /home/buildduty/allthethi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How to set up a development environment to create `allthethings.json`.

Base install

#!/bin/bash

cd /home/buildduty/allthethings
source /home/buildduty/allthethings/venv/bin/activate

updated=0
for d in buildbot-configs buildbotcustom tools; do
    t=$(mktemp)
    hg -R $d pull -q
    prev_rev=$(hg -R $d id)
    hg -R $d update -q
    cur_rev=$(hg -R $d id)
    if [ "$prev_rev" != "$cur_rev" ]; then
        echo "$d updated something"
        updated=1
    fi
done
updated=1

if [ "$updated" = "1" ]; then
    echo "making all the things!"
    (
        cd buildbot-configs;
        bash /home/buildduty/allthethings/braindump/buildbot-related/dump_allthethings.sh  ../allthethings.json
    )
   # TODO upload this somewhere.. maybe relengapi
fi