Scrutinizer-CI support for golang.
This package generates code-coverage, does static analysis, and runs tests for Scrutinizer-CI.
Copy and paste the yml below into your .scrutinizer.yml
file to get started.
build:
dependencies:
before:
- 'source <(curl -fsSL https://raw.githubusercontent.com/phayes/go-scrutinize/master/install-golang)'
tests:
override:
-
command: 'cd $PROJECTPATH && go-scrutinize'
idle_timeout: 600
coverage:
file: 'coverage.xml'
format: 'clover'
analysis:
file: 'checkstyle_report.xml'
format: 'general-checkstyle'
This is an example of what the Scrutinizer Report page looks like for a golang project.