Repository is archived
No release in over 3 years
Low commit activity in last 3 years
Formatter for xcpretty customized to provide pretty output on TravisCI
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.2
~> 1.3
>= 0

Runtime

~> 0.2, >= 0.0.7
 Project Readme

XCPretty TravisCI Formatter

Custom formatter for xcpretty with some syntactic sugar for presentation on TravisCI. Here is some sample output. The "Build", "Clean", and test phase sections are folded separately, though the final completion message and failing tests are presented clearly, for faster scanning.

Installation

This formatter is distributed via RubyGems, and depends on a version of xcpretty >= 0.0.7 (when custom formatters were introduced). Run:

gem install xcpretty-travis-formatter

Usage

Specify xcpretty-travis-formatter as a custom formatter to xcpretty:

#!/bin/bash

xcodebuild | xcpretty -f `xcpretty-travis-formatter`

How it works

The --formatter option takes a file path as an argument, which is returned by the xcpretty-travis-formatter binary. It must be evaluated before the xcpretty arguments are evaluated, hence the backtick wrapping. The specified file must return a Ruby subclass of XCPretty::Formatter, which will then receive formatter_* method invocations as the build output is parsed.