Skip to content

Instantly share code, notes, and snippets.

@michalg
Forked from Stubbs/install_jenkins.sh
Last active February 25, 2016 13:03
Show Gist options
  • Select an option

  • Save michalg/4986642 to your computer and use it in GitHub Desktop.

Select an option

Save michalg/4986642 to your computer and use it in GitHub Desktop.

Revisions

  1. Michał Głowala revised this gist Feb 21, 2013. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions install_jenkins.sh
    Original file line number Diff line number Diff line change
    @@ -28,6 +28,13 @@ pear install --alldeps phpmd/PHP_PMD
    ## PHP_Codesniffer #####################################
    pear install PHP_CodeSniffer

    ## PHP_CodeBrowser #####################################
    pear channel-discover pear.phpunit.de
    pear install phpunit/PHP_CodeBrowser

    ## PHPDOC #####################################
    yum install phpdoc.noarch

    ## PHPLOC ##############################################
    pear install phpunit/phploc

  2. Michał Głowala revised this gist Feb 19, 2013. 1 changed file with 3 additions and 29 deletions.
    32 changes: 3 additions & 29 deletions install_jenkins.sh
    Original file line number Diff line number Diff line change
    @@ -1,39 +1,13 @@
    #!/bin/bash

    ## Install Git #########################################
    apt-get install git

    ## Install Ant #########################################
    apt-get install ant

    ## Install Jenkins #####################################

    if ! grep jenkins /etc/apt/sources.list; then
    echo Please add http://pkg.jenkins-ci.org/debian binary/ to /etc/apt/sources and then run the script again.
    exit 1
    fi

    wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
    apt-get update
    apt-get install jenkins


    ## Install PHP #########################################
    apt-get install php5


    ## Install Pear ########################################
    wget -q -O - http://pear.php.net/go-pear.phar > /tmp/go-pear.phar
    php /tmp/go-pear.phar
    rm /tmp/go-pear.phar

    pear upgrade pear

    ## Install Phing #######################################
    pear channel-discover pear.phing.info
    pear install --alldeps phing/phing

    ## Install PHPUnit #####################################
    yum install php-xml
    pear config-set auto_discover 1
    pear install pear.phpunit.de/PHPUnit

    @@ -44,7 +18,7 @@ pear channel-discover pear.pdepend.org
    pear install pdepend/PHP_Depend

    ## XDebug ##############################################
    apt-get install php5-xdebug
    yum install php-pecl-xdebug.i386

    ## PHPMD ###############################################
    pear channel-discover pear.phpmd.org
    @@ -59,4 +33,4 @@ pear install phpunit/phploc

    ## DocBlox #############################################
    pear channel-discover pear.docblox-project.org
    pear install docblox/DocBlox
    pear install --alldeps docblox/DocBlox
  3. @Stubbs Stubbs revised this gist Oct 25, 2012. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion install_jenkins.sh
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,9 @@
    ## Install Git #########################################
    apt-get install git

    ## Install Ant #########################################
    apt-get install ant

    ## Install Jenkins #####################################

    if ! grep jenkins /etc/apt/sources.list; then
    @@ -56,4 +59,4 @@ pear install phpunit/phploc

    ## DocBlox #############################################
    pear channel-discover pear.docblox-project.org
    pear install docblox/DocBlox
    pear install docblox/DocBlox
  4. @Stubbs Stubbs revised this gist Feb 3, 2012. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion install_jenkins.sh
    Original file line number Diff line number Diff line change
    @@ -52,4 +52,8 @@ pear install --alldeps phpmd/PHP_PMD
    pear install PHP_CodeSniffer

    ## PHPLOC ##############################################
    sudo pear install phpunit/phploc
    pear install phpunit/phploc

    ## DocBlox #############################################
    pear channel-discover pear.docblox-project.org
    pear install docblox/DocBlox
  5. @Stubbs Stubbs created this gist Feb 3, 2012.
    55 changes: 55 additions & 0 deletions install_jenkins.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,55 @@
    #!/bin/bash

    ## Install Git #########################################
    apt-get install git

    ## Install Jenkins #####################################

    if ! grep jenkins /etc/apt/sources.list; then
    echo Please add http://pkg.jenkins-ci.org/debian binary/ to /etc/apt/sources and then run the script again.
    exit 1
    fi

    wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
    apt-get update
    apt-get install jenkins


    ## Install PHP #########################################
    apt-get install php5


    ## Install Pear ########################################
    wget -q -O - http://pear.php.net/go-pear.phar > /tmp/go-pear.phar
    php /tmp/go-pear.phar
    rm /tmp/go-pear.phar

    pear upgrade pear

    ## Install Phing #######################################
    pear channel-discover pear.phing.info
    pear install --alldeps phing/phing

    ## Install PHPUnit #####################################
    pear config-set auto_discover 1
    pear install pear.phpunit.de/PHPUnit

    ## PHPCPD ##############################################
    pear install phpunit/phpcpd

    pear channel-discover pear.pdepend.org
    pear install pdepend/PHP_Depend

    ## XDebug ##############################################
    apt-get install php5-xdebug

    ## PHPMD ###############################################
    pear channel-discover pear.phpmd.org
    pear channel-discover pear.pdepend.org
    pear install --alldeps phpmd/PHP_PMD

    ## PHP_Codesniffer #####################################
    pear install PHP_CodeSniffer

    ## PHPLOC ##############################################
    sudo pear install phpunit/phploc