Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

TravisBuddy Integration ⚡ #30

Closed
wants to merge 1 commit into from
Closed

TravisBuddy Integration ⚡ #30

wants to merge 1 commit into from

Conversation

TravisBuddy
Copy link
Collaborator

TravisBuddy will comment on pull requests in your public repository everytime a test failed in one of them. The comment will include only the part of the build log that applies to your testing framework, so your contirbutors won't have to enter Travis's website and search the long and annoying build log for the reason the tests failed.

Here's an example: bluzi/static-server#1

@TravisBuddy
Copy link
Collaborator Author

Travis tests have failed

Hey Travis Buddy,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

npm test

> [email protected] test /home/travis/build/bluzi/travis-buddy
> mocha



  GET /status
    ✓ should be running and return HTTP status 200 (46ms)

  GET /test
19:00:58.371Z  INFO unknown : Testing job '295503460' (node_js)
19:00:58.614Z  INFO unknown : Done found after 0/10 attempts.
    ✓ should return HTTP status 200 (257ms)

  POST /
19:00:58.641Z  INFO unknown : Handling request for 'create sdfdsfsd' by 'Eliran Pe'er'
19:00:58.839Z  INFO unknown : Done found after 0/10 attempts.
19:00:58.843Z ERROR unknown : 
    Error in handler { params: {},
      owner: 'bluzi',
      repo: 'name-db',
      pullRequest: 32,
      pullRequestTitle: 'create sdfdsfsd',
      buildNumber: 295066345,
      jobs: [ 295066347 ],
      author: 'Eliran Pe\'er',
      state: 'failed',
      branch: 'bluzi-patch-3',
      travisType: 'push',
      language: 'node_js',
      scripts: undefined }
19:00:58.844Z ERROR unknown : 
    Error: Invalid GitHub access token null { params: {},
      owner: 'bluzi',
      repo: 'name-db',
      pullRequest: 32,
      pullRequestTitle: 'create sdfdsfsd',
      buildNumber: 295066345,
      jobs: [ 295066347 ],
      author: 'Eliran Pe\'er',
      state: 'failed',
      branch: 'bluzi-patch-3',
      travisType: 'push',
      language: 'node_js',
      scripts: undefined }
    1) should return HTTP status 200 and ok message

  GET /
    ✓ should return HTML and status 200

  GET /getting-started
    ✓ should return HTML and status 200

  GET /contact-us
    ✓ should return HTML and status 200

  GET /dashboard
    ✓ should return HTML and status 200


  6 passing (594ms)
  1 failing

  1) POST /
       should return HTTP status 200 and ok message:
     Error: expected 200 "OK", got 500 "Internal Server Error"
      at Test._assertStatus (node_modules/supertest/lib/test.js:266:12)
      at Test._assertFunction (node_modules/supertest/lib/test.js:281:11)
      at Test.assert (node_modules/supertest/lib/test.js:171:18)
      at Server.assert (node_modules/supertest/lib/test.js:131:12)
      at emitCloseNT (net.js:1655:8)
      at _combinedTickCallback (internal/process/next_tick.js:135:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)



npm ERR! Test failed.  See above for more details.


npm run lint

> [email protected] lint /home/travis/build/bluzi/travis-buddy
> eslint .



@bluzi bluzi closed this Dec 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants