0.1.3 • Published 8 years ago

dashing-reporter v0.1.3

Weekly downloads
22
License
ISC
Repository
github
Last release
8 years ago

Dashing Reporter

Logs Continuous Integration metrics to Amazon DynamoDB.

Build Status

Installation

npm install dashing-reporter --save-dev

Usage

./node_modules/.bin/dashing-reporter --help

By default, dashing-reporter will use a local configuration and not attempt to connect to AWS.

To use a custom config, copy .dashingreporter.default.json to .dashingreporter.json to the root of your project and modify to meet your needs.

If you want to use Environmental Variables (and you should, because hard-coding credentials is a terrible idea), remove the corresponding settings from .dashingreporter.json and set them in your CI service.

AWS Environmental Variable.dashingreporter.json
AWS_ACCESS_KEY_IDaccessKeyId
AWS_SECRET_ACCESS_KEYsecretAccessKey

A working Travis CI configuration is included; see .travis.yml for details. This should theoretically work with Circle CI and others, but it hasn't been explicitly tested.

Payload

Each Item has the following attributes:

AttributeDescription
branchFor builds not triggered by a pull request this is the name of the branch currently being built; whereas for builds triggered by a pull request this is the name of the branch targeted by the pull request (in many cases this will be master).
buildNumberThe number of the current build (for example, 4).
commitThe commit that the current build is testing.
coverageBranchesPercentageIstanbul percentage of branches covered.
coverageFunctionsPercentageIstanbul percentage of functions covered.
coverageLinesPercentageIstanbul percentage of lines covered.
coverageStatementsPercentageIstanbul percentage of statements covered.
eslintErrorCountESLint Error count.
eslintWarningCountESLint Warning count.
jobNumberThe number of the current job (for example, 4.1.
languagePrimary interpreting language name, like node_js.
languageVersionPrimary interpreting Language version, like 6.7.
repoSlugThe slug (in form: owner_name/repo_name of the repository currently being built (for example, fluxsauce/dashing-reporter)
testResultSet to 0 if the build is successful and 1 if the build is broken.
timestampCurrent time in ISO 8601 formatted string.

Local Development

Install DynamoDB locally.

If you have Homebrew installed, you can use the dynamodb-local formula.

brew install dynamodb-local

If you don't have Java:

brew cask install java

You have two options for running the DynamoDB server, with persistence:

dynamodb-local --sharedDb

The database will be stored in /usr/local/var/data/dynamodb-local.

Alternative, you can run it in memory with no persistence:

dynamodb-local --sharedDb -inMemory

Storage

For both hosted and local development, a DynamoDB table is required to store build metadata. The structure can be created with:

dashing-reporter --createTable
0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago