mozilla / http-observatory-cli

The command line tool for the HTTP Observatory
Mozilla Public License 2.0
90 stars 11 forks source link

Why the exit code is not the score? #8

Closed FGRibreau closed 3 years ago

FGRibreau commented 8 years ago

Making the exit code the score would allow users to integrate http-observatory-cli into their build pipeline :)

april commented 8 years ago

Most build chains (like Travis CI) will error out if the exit code isn't 0. How about being able to set a minimum score or minimum grade, and having it exit with code 1 if it doesn't meet that score?

FGRibreau commented 8 years ago

Yes, that's definitely something like that I had in mind! That would be perfect and natural as other tools works like that :)

gregglind commented 8 years ago

I did this as --expect B+ in the node client (https://github.com/mozilla/observatory-cli/)

gregglind commented 8 years ago

@FGRibreau the node client has a lot of options for CI work, if you want to look into it. Holler there if they don't meet your needs.

gene1wood commented 3 years ago

Closing in favor of https://github.com/mozilla/observatory-cli/ which supports this