Add codecov reports as part of CI (#1020)
This is a bit experimental. It builds arbor with `-fprofile-arcs -ftest-coverage` and creates a docker image with just the project binaries, lcov, gcov and generated `.gcno` files. This should still be reasonably small since there are no object files etc. When run on daint, `.gcna` files are produced (should be thread / process safe according to gcc's manual) inside of the container, and `lcov` is used to combine all those things into a single file with a random name in the mounted git project folder (hopefully this solves clashes with multiple nodes). After all tests are run, the combined reports are uploaded to codecov.io.
Showing
- .codecov.yml 3 additions, 0 deletions.codecov.yml
- .gitlab-ci.yml 103 additions, 15 deletions.gitlab-ci.yml
- README.md 1 addition, 1 deletionREADME.md
- ci/codecov/build.Dockerfile 33 additions, 0 deletionsci/codecov/build.Dockerfile
- ci/codecov/deploy.Dockerfile 91 additions, 0 deletionsci/codecov/deploy.Dockerfile
- ci/codecov_post 22 additions, 0 deletionsci/codecov_post
- ci/codecov_pre 10 additions, 0 deletionsci/codecov_pre
- ci/release/build.Dockerfile 3 additions, 3 deletionsci/release/build.Dockerfile
- ci/release/deploy.Dockerfile 4 additions, 1 deletionci/release/deploy.Dockerfile
- ci/upload_codecov 11 additions, 0 deletionsci/upload_codecov
Please register or sign in to comment