xcpretty custom formatter for TravisCI
Switch branches/tags
Clone or download
Latest commit 513adf2 Oct 25, 2017
Failed to load latest commit information.
bin Initial commit Mar 3, 2015
lib Refactor for newer travis (#5) Oct 24, 2017
spec Cleanup Mar 3, 2015
.travis.yml Release 0.0.4 Oct 30, 2015
CHANGELOG.md Release 1.0.0 Oct 24, 2017
Gemfile Initial commit Mar 3, 2015
Gemfile.lock Initial commit Mar 3, 2015
LICENSE Initial commit Mar 3, 2015
README.md Add example to readme Oct 1, 2015
Rakefile Release 0.0.4 Oct 30, 2015
xcpretty-travis-formatter.gemspec Release 1.0.0 Oct 24, 2017


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.


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


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


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.