fail-to-pr
Post the relevant part of your broken CI build to the PR that triggered it
Last updated 2 years ago by pomber .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fail-to-pr 
SYNC missed versions from official npm registry.
demo

I made this package so I can see the snapshots tests that failed in a travis build.
Currently it handles only a very specific use case: failed cypress-image-snapshot tests in travis (probably jest-image-snapshot too). But I want to add more features, so send an issue or a PR if you want to use it for something else or need more customization.

Follow @pomber for updates

Usage

  1. Install it:
$ yarn add --dev fail-to-pr
  1. Wrap your test script in package.json:
-    "cy:run": "cypress run",
+    "cy:run": "fail-to-pr cypress run",
  1. Create a GitHub token (with repo scope)

  2. Add the token as "GH_TOKEN" env var in travis (make sure to leave the "Display value in build log" disabled)

License

Released under MIT license.

Current Tags

  • 1.0.3                                ...           latest (2 years ago)

4 Versions

  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |