Skip to content

Instantly share code, notes, and snippets.

View feffi's full-sized avatar

feffi feffi

View GitHub Profile
@feffi
feffi / install_wikiawesome.sh
Created November 11, 2013 14:04
Install WikiAwesome via git
cd /var/www/mediawiki
git clone https://github.com/feffi/WikiAwesome extensions/WikiAwesome
cd extensions/WikiAwesome
git submodule update --init --recursive
echo "require_once( $IP.'/extensions/WikiAwesome/WikiAwesome.php' );" >> LocalSettings.php
java -jar ci-template/jenkins-cli.jar -s http://localhost:8080 copy-job ci-template myProject
cd /Users/<your-user-name>/.jenkins/jobs/
mkdir ci-template
cd ci-template
wget https://gist.github.com/feffi/5781320/raw -O build.xml
wget https://gist.github.com/feffi/5781450/raw -O config.xml
wget http://localhost:8080/jnlpJars/jenkins-cli.jar
java -jar jenkins-cli.jar -s http://localhost:8080 reload-configuration
java -jar jenkins-cli.jar -s http://localhost:8080 create-job ci-template < config.xml
java -jar jenkins-cli.jar -s http://localhost:8080 reload-configuration
@feffi
feffi / config.xml
Created June 14, 2013 12:31
a jenkins config for building php projects
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description>&lt;img type=&quot;image/svg+xml&quot; height=&quot;300&quot; src=&quot;ws/build/pdepend/overview-pyramid.svg&quot; width=&quot;500&quot;&gt;&lt;/img&gt;&#xd;
&lt;img type=&quot;image/svg+xml&quot; height=&quot;300&quot; src=&quot;ws/build/pdepend/dependencies.svg&quot; width=&quot;500&quot;&gt;&lt;/img&gt;</description>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>true</disabled>
<?xml version="1.0" encoding="UTF-8"?>
<project name="name-of-project" default="build">
<target name="build"
depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpdox,phpunit,phpcb"/>
<target name="build-parallel"
depends="prepare,lint,tools-parallel,phpunit,phpcb"/>
<target name="tools-parallel" description="Run tools in parallel">
pear config-set auto_discover 1
pear install pear.phpqatools.org/phpqatools pear.netpirates.net/phpDox
brew prune
brew cleanup
brew update
brew tap --repair
brew doctor
wget http://localhost:8080/jnlpJars/jenkins-cli.jar
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin checkstyle cloverphp dry htmlpublisher jdepend plot pmd violations xunit
brew install -v jenkins
ln -sfv /usr/local/opt/jenkins/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
@feffi
feffi / Spring cleaning brew cellar
Last active December 18, 2015 12:08
Spring cleaning brew cellar
brew cleanup --force -s
rm -rf $(brew --cache)