Git Product home page Git Product logo

gradingwizardapi's Introduction

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

gradingwizardapi's People

Contributors

fishermanswharff avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.