annotate INSTALL.sh @ 288:b6d0ce3cf430

dereference + repurposes (round1)
author Jeff Hammel <k0scist@gmail.com>
date Tue, 15 Apr 2014 21:27:32 -0700
parents 042507e2bbe3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
63
04e41ee436c3 make INSTALL script runnable
Jeff Hammel <jhammel@mozilla.com>
parents: 61
diff changeset
1 #!/usr/bin/bash
04e41ee436c3 make INSTALL script runnable
Jeff Hammel <jhammel@mozilla.com>
parents: 61
diff changeset
2
288
b6d0ce3cf430 dereference + repurposes (round1)
Jeff Hammel <k0scist@gmail.com>
parents: 247
diff changeset
3 # installation script for autobot
158
13a2a66b1c41 comment the INSTALL script
Jeff Hammel <jhammel@mozilla.com>
parents: 65
diff changeset
4 # install using
288
b6d0ce3cf430 dereference + repurposes (round1)
Jeff Hammel <k0scist@gmail.com>
parents: 247
diff changeset
5 # curl http://k0s.org/hg/autobot/raw-file/tip/INSTALL.sh | bash
61
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
6
288
b6d0ce3cf430 dereference + repurposes (round1)
Jeff Hammel <k0scist@gmail.com>
parents: 247
diff changeset
7 REPO='http://k0s.org/hg/autobot' # location of mercurial repository
158
13a2a66b1c41 comment the INSTALL script
Jeff Hammel <jhammel@mozilla.com>
parents: 65
diff changeset
8
13a2a66b1c41 comment the INSTALL script
Jeff Hammel <jhammel@mozilla.com>
parents: 65
diff changeset
9 # destination
247
042507e2bbe3 comments
Jeff Hammel <jhammel@mozilla.com>
parents: 158
diff changeset
10 DEST='autobot' # name of the virtualenv relative to CWD
61
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
11 if [ "$#" != "0" ]
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
12 then
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
13 DEST=$1
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
14 fi
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
15
158
13a2a66b1c41 comment the INSTALL script
Jeff Hammel <jhammel@mozilla.com>
parents: 65
diff changeset
16 # make a virualenv
64
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
17 if which virtualenv
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
18 then
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
19 virtualenv ${DEST}
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
20 else
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
21 curl https://bitbucket.org/ianb/virtualenv/raw/tip/virtualenv.py | python - ${DEST}
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
22 fi
65
288397616e5f use the varaible name
Jeff Hammel <jhammel@mozilla.com>
parents: 64
diff changeset
23 cd ${DEST}
0
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 . bin/activate # linux only
158
13a2a66b1c41 comment the INSTALL script
Jeff Hammel <jhammel@mozilla.com>
parents: 65
diff changeset
25
13a2a66b1c41 comment the INSTALL script
Jeff Hammel <jhammel@mozilla.com>
parents: 65
diff changeset
26 # checkout the repository
0
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27 mkdir src
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 cd src
61
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
29 hg clone ${REPO}
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
30 cd autobot
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
31 python setup.py develop
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
32
288
b6d0ce3cf430 dereference + repurposes (round1)
Jeff Hammel <k0scist@gmail.com>
parents: 247
diff changeset
33 # now you can run `create-autobot` to get a testing bot!