Skip to content

Instantly share code, notes, and snippets.

@jaymecd
Forked from h4cc/scrutinizer.sh
Created February 23, 2014 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaymecd/9170044 to your computer and use it in GitHub Desktop.
Save jaymecd/9170044 to your computer and use it in GitHub Desktop.
mkdir scrutinizer && cd scrutinizer
# Install tools
# - Scrutinizer and composer
wget http://scrutinizer-ci.com/scrutinizer.phar
curl -sS https://getcomposer.org/installer | php
# - All needed CI tools
php composer.phar require h4cc/phpqatools:~1.2
cp -p composer.phar vendor/bin/composer
# Fetch project to scrutinize
git clone https://github.com/h4cc/AliceFixturesBundle.git project
# Run
# - Add paths for CI Tools
PATH=`pwd`"/vendor/bin:$PATH"
export PATH
# - Run scrutinizer with JSON output.
php scrutinizer.phar run --format=json --output-file=scrutinizer.json project/
# --- Infos ---
# - Everything needed in the project itself, is a '.scrutinzer.yml' file:
# https://github.com/h4cc/AliceFixturesBundle/blob/master/.scrutinizer.yml
# --- Problems ---
# - scrutinizer.json is not a public format, but pretty easy.
# - The original output files from the tools can not be (easily) obtained for further (jenkins-) use.
# - There is not tool (yet) to make a HTML Report of the scrutinizer.json file.
# - Not sure if using scrutinizer.phar is helping in a project, if there is already a build.xml available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment