Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Continuousintegrationwith drupal installationguide


Published on

Additional materials for Continuous Integration session.

Published in: Internet
  • Be the first to comment

  • Be the first to like this

Continuousintegrationwith drupal installationguide

  1. 1. Continuous integration environment installation Ubuntu 14.04 LAMP sudo apt-get install lamp-server^ sudo a2enmod rewrite sudo apt-get install php-pear sudo apt-get install php5-curl sudo apt-get install php5-gd sudo service apache2 restart Jenkins wget -q -O - | sudo apt-key add - sudo sh -c 'echo deb binary/ > /etc/apt/sources.list.d/jenkins.list' sudo apt-get update sudo apt-get install jenkins Jenkins should be available at: ​ Perform security setup Set up Matrix-based Security following this documentation page Install Jenkins plugins You’ll need: ● Static Analysis Collector Plug-in ● Checkstyle ● Phing ● Plot ● GIT plugin
  2. 2. Composer curl -sS | php sudo mv composer.phar /usr/local/bin/composer Drush composer global require drush/drush:7.* Add Drush to your system path by placing export PATH="$HOME/.composer/vendor/bin:$PATH" to the .bashrc vim ~/.bashrc source ~/.bashrc Phing sudo pear channel-discover sudo pear channel-discover sudo pear channel-discover sudo pear channel-discover sudo pear install [--alldeps] phing/phing sudo pear install PHP_CodeSniffer sudo pear install HTTP_Request2 PHPUnit wget chmod +x phpunit.phar sudo mv phpunit.phar /usr/local/bin/phpunit Git sudo apt-get install git BitBucket (or another) ● Example project: ​ ● Create repository
  3. 3. ● Generate account keys or add deployment keys to repository if already having account keys ● Follow links ○ osx-linux-270827678.html ○ Setup local site (optional) Create database mysqladmin -uroot -ppassword create drupal Clone project cd /var/www git clone drupal-demo Build and install site drush make profiles/sample_profile/sample_profile.make -y drush si sample_profile --account-name=admin --account-pass=admin --db-url=mysql://root:password@localhost/drupal -y -v Configure Apache virtual host <VirtualHost *:80> ServerAdmin me@myserver DocumentRoot /var/www/drupal-demo ServerName www.drupal.loc ServerAlias drupal.loc *.drupal.loc <Directory /var/www/drupal-demo> Options FollowSymlinks AllowOverride All </Directory> </VirtualHost> Add alias to /etc/hosts file: drupal.loc Configure Jenkins credentials You may add generate ssh key to the credentials list and use in job. Create Jenkins Job …
  4. 4.