ci-reporter
ci-reporter copied to clipboard
travis-ci report not working
The app doesn't seem to work with my project: I have made a PR where TravisCI failed but I got no message from ci-reporter.
This is the content of my ci-reporter.yml:
# Set to false to create a new comment instead of updating the app's first one
updateComment: true
# Use a custom string, or set to false to disable
before: "Unfortunately, the [{{ provider }} build]({{ targetUrl }}) is failing as of {{ commit }}. Here's the output:"
# Use a custom string, or set to false to disable
after: "If you need help with this issue, don't hesitate to ask a maintainer of the project!"
Hey @leinardi - sorry about that. As I was fighting with the Travis API, it became difficult to parse the log without knowing what test script I was looking for, so I made the Travis log parser a little less smart by only looking for npm test
commands.
https://github.com/JasonEtco/ci-reporter/blob/3e5ac62d889c6c193bd72f0c3e95349100181743/src/providers/Travis.js#L21
This was meant to be a temporary solution to some larger problems, and while I'm sure this works for many projects I'm not really satisfied with only supporting one testing paradigm (and one language).
Happy to work with you on a PR for this - I don't have bandwidth right now to tackle it, but should in a couple of weeks.
Hi @JasonEtco, thanks for your reply. I will be happy to contribute with some PR but I don't have any experience in developing GitHub Apps. Is there an easy way for me to play with the regex? I could try to write the regex and test it indirectly, but I think it will make more sense to actually run the App to see if it works.
Facing the same issue.
Doesn't work for us either, using yarn test, output to capture would be:
$ yarn test
[ output ]
The command "yarn test" exited with 1.