Giter Club home page Giter Club logo

Comments (10)

pbauman avatar pbauman commented on August 21, 2024

CC me

from civet.

dmcdougall avatar dmcdougall commented on August 21, 2024

https://github.com/codecov/example-c#travis-ci

All other CI you can simply run bash <(curl -s https://codecov.io/bash)

cc @pbauman

Edit: Note: I don't condone bashing arbitrary curl output.

from civet.

friedmud avatar friedmud commented on August 21, 2024

from civet.

brianmoose avatar brianmoose commented on August 21, 2024

Having a diff of code coverage is a cool feature. I think using codecov.io would already be possible with the current Civet. It would just require recipe changes to run the coverage command and then run their bash script which presumably prints out the diff, which then can be posted as a comment to the PR. We would probably have to run the same stuff on the repo default branch so they have a reference point for the diff.

If you wanted a replacement for codecov.io, that would take a bit more work :)

By the way, if you do want code coverage for libmesh we can easily add it to run on merges to the master branch and store it on mooseframework.org (we already store libmesh doxygen there, although it is only the libmesh version that comes with MOOSE master)

from civet.

pbauman avatar pbauman commented on August 21, 2024

Along these lines, have folks figured out how to hook into the "Build Passing" badge to display on the GitHub page? My (very skim) searching only finds Travis-specific stuff.

from civet.

brianmoose avatar brianmoose commented on August 21, 2024

We have something on the civet github page. Build status
The relevant bit of markdown is

[![Build status](https://www.moosebuild.org/44/branch_status.svg)](https://www.moosebuild.org/repo/19/)

The URL endpoints aren't the best as the 44 and 19 are internal database ids. If there is interest in this sort of thing I can easily add a /<repo>/<branch>/branch_status.svg endpoint as well. This hasn't been used much so if there are any improvements to it that you would like to see, just let me know.

from civet.

pbauman avatar pbauman commented on August 21, 2024

Cool. To be clear, the URL above would be the same for my local server except for the beginning part (BASE_URL), i.e. https://www.moosebuild.org?

If there is interest in this sort of thing I can easily add a ///branch_status.svg endpoint as well.

There is, but it's squarely in the "would be nice to have" category, particularly if the existing paths work for any CIVET server (modulo of course the BASE_URL).

from civet.

brianmoose avatar brianmoose commented on August 21, 2024

The ids would change depending on the branch and repo, which is why these endpoints aren't very user friendly.
You would have to replace the 44 to your branch id and the 19 to your repository id.
You can find these by navigating to the respective pages and seeing the id in the URL.
A lot of URL endpoints would certainly be improved by using a more human approach, ie instead of /repo/19/ it would be /repo/idaholab/civet.

from civet.

brianmoose avatar brianmoose commented on August 21, 2024

I added the friendly branch status endpoint.
The new markdown is

[![Build status](https://www.moosebuild.org/idaholab/civet/devel/branch_status.svg)](https://www.moosebuild.org/repo/idaholab/civet/)

from civet.

brianmoose avatar brianmoose commented on August 21, 2024

Code coverage is best left up to individual civet recipes, not in civet itself. So I am going to close this.

from civet.

Related Issues (20)

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.