groups/scripts/bootstrap.sh
Marton Kiss eeb24cd279 Groups community portal gating tasks
Bootstrap a new build environment and build/deploy the site as a
gating test.

Change-Id: I45efa824c3ca155b06915a2103dabed56f4e05c6
2014-01-15 21:10:32 +01:00

20 lines
601 B
Bash
Executable File

#!/bin/bash
#
# Bootstrap a minimal environment required to build
# a Drupal distribution tarball on Ubuntu 12.04LTS (precise)
#
set -xe
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y unzip php5-mysql php5-gd php5-cli libapache2-mod-php5 mysql-server mysql-client php-pear git
# install drush 6.0.0
pear channel-discover pear.drush.org
pear install drush/drush-6.0.0
pear install Console_Table-1.1.3
# add drupal-site-deployment drush extension
wget https://github.com/mkissam/drush-dsd/archive/v0.3.tar.gz -O - | tar -xz
mv drush-dsd-0.3 /usr/share/php/drush/commands/dsd