Jon889 / xcpretty-azure-pipelines-formatter

xcpretty custom formatter for Azure Pipelines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XCPretty Azure Pipelines Formatter

Custom formatter for xcpretty with some syntactic sugar for presentation on Azure Pipelines.

Usage

Specify xcpretty-azure-pipelines-formatter as a custom formatter to xcpretty:

#!/bin/bash

xcodebuild | xcpretty -f `xcpretty-azure-pipelines-formatter`

How it works

The --formatter option takes a file path as an argument, which is returned by the xcpretty-azure-pipelines-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.

About

xcpretty custom formatter for Azure Pipelines

License:MIT License


Languages

Language:Ruby 100.0%