File: deploy.sh

package info (click to toggle)
vagrant 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,084 kB
  • sloc: ruby: 15,045; python: 230; sh: 66; makefile: 2; lisp: 1
file content (38 lines) | stat: -rw-r--r-- 1,147 bytes parent folder | download
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
#!/bin/sh
#
# This shell script deploys the buildmaster by downloading an
# up-to-date tar.gz from GitHub and setting up the proper environment.

#----------------------------------------------------------------------
# Update the source
#----------------------------------------------------------------------
# Download the Vagrant source, extract it
cd /tmp
rm -rf vagrant
rm -rf mitchellh-vagrant-*
wget https://github.com/mitchellh/vagrant/tarball/master -O vagrant.tar.gz
tar xvzf vagrant.tar.gz
mv mitchellh-vagrant-* vagrant

# Move the code into place
cp -R vagrant/test/buildbot/* /srv/buildmaster/

# Setup the virtualenv
cd /srv/buildmaster
virtualenv --no-site-packages env

# Activate the environment
. env/bin/activate

# Install dependencies
pip install -r requirements.txt

#----------------------------------------------------------------------
# Update the buildmaster
#----------------------------------------------------------------------
# Setup environmental variables that are required
export BUILDBOT_CONFIG=/etc/buildmaster/master.cfg
export PYTHONPATH=/srv/buildmaster

# Restart the buildmaster
buildbot restart master/