Skip to content

Api-only app to receive Travis webhooks after building GA WDI repos

Notifications You must be signed in to change notification settings

fishermanswharff/GradingWizardApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status Code Climate Test Coverage

General Assembly Logo

Todo list for this API:

  • update readme with endpoint behavior
  • update readme with how to use
  • email controller
  • email view

Todo list for repo config to build with travis:

  • output logs from rspec
  • config build artifacts post to AWS S3

Grading Wizard

has a sole purpose: to receive Travis CI webhooks on automated builds, compile the results from repositories and produce an aggregated result of the builds from forks and master branches.

API endpoint behavior

  • GET '/repos' will force a query for all GA WDI Boston public repos, and save unique repos.
  • GET /repos?name=github_repo_name will return that repo and its pull requests built by travis
  • Travis CI webhooks POST'ing to https://gradingwizard.herokuapp.com/travisreports will be received by travis#nomnom and will parse the Travis build to check if it's a pull request or just a regular push.
  • A pull request will be saved to the matching parent repo.
  • Subsequent requests on repos will include that repo's travis-build pull requests. For instance, GET '/repos/72' will return this json:
{
  "id":72,
  "name":"wdi_1_ruby_demo_basics",
  "url":"https://github.com/ga-wdi-boston/wdi_1_ruby_demo_basics",
  "pull_requests_count":1,
  "pull_requests":
  [
    {
      "travis_identifier":46572831,
      "name":"ga-wdi-boston/wdi_1_ruby_demo_basics",
      "build_status":0,
      "status_message":"Passed",
      "build_url":"https://travis-ci.org/ga-wdi-boston/wdi_1_ruby_demo_basics/builds/46572831",
      "commit_message":"travis file with prod url on pull_request",
      "committer_name":"fishermanswharff",
      "pull_request_number":1
    }
  ]
}

Example of future expectation for reporting:

email with:

Subject: Results of ${wdi_repo_name}
Body:

Number of tests built with Travis-CI: 5
Average score: 3.2

[Results of the builds]

          |
  |   |   |
| | | | | | 
0 1 2 3 4 5

Top 3 Results:

Student A, B, C

Bottom 3 Results: Student D, E, F

Most common test failure: NAME OF RPSEC TEST

About

Api-only app to receive Travis webhooks after building GA WDI repos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published