# \[Coverage.jl\] Submit CI Coverage results to different repo

**URL:** <https://discourse.julialang.org/t/coverage-jl-submit-ci-coverage-results-to-different-repo/20420>\
**Category:** General Usage\
**Tags:** coverage\
**Created:** [February 4, 2019, 10:20am UTC](https://discourse.julialang.org/t/coverage-jl-submit-ci-coverage-results-to-different-repo/20420 "2019-02-04T10:20:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PieterjanRobbe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pieterjanrobbe/32/3298_2.png) [@PieterjanRobbe](https://discourse.julialang.org/u/PieterjanRobbe)\
**Post date:** [February 4, 2019, 10:20am UTC](https://discourse.julialang.org/t/coverage-jl-submit-ci-coverage-results-to-different-repo/20420/1 "2019-02-04T10:20:55Z")

</div>

Suppose I have a package called `Main.jl` and a separate package `TestMain.jl` that uses `Main.jl`. Both are on Github and have Travis CI activated. Is there a way to submit the coverage results from `Main`, obtained by testing `TestMain`, to the repo of `Main.jl`? Currently my `.travis` setup contains something like

```julia
after_success:
  - julia -e 'using Pkg; cd(Pkg.dir("TestMain")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
 - julia -e 'using Pkg; cd(Pkg.dir("Main")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'

```

Looking at the Travis log, the coverage results for `Main` exist and are being processed, but are submitted to the `codecov` of `TestMain` instead of `Main`. I think this must be possible by supplying an argument to `Codecov.submit` using [`query_git_info`](https://github.com/JuliaCI/Coverage.jl/blob/2753173fb47e66de6232e0cbf53f71113b466c53/src/coveralls.jl)? I can’t seem to figure it out…

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [February 4, 2019, 10:31am UTC](https://discourse.julialang.org/t/coverage-jl-submit-ci-coverage-results-to-different-repo/20420/2 "2019-02-04T10:31:56Z")

</div>

You could make `TestMain` a [test-specific dependency](https://julialang.github.io/Pkg.jl/dev/creating-packages/#Test-specific-dependencies-1) for `Main`, and just use it in the tests for the latter.

---

<div class="post-metadata">

**Author:** ![PieterjanRobbe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pieterjanrobbe/32/3298_2.png) [@PieterjanRobbe](https://discourse.julialang.org/u/PieterjanRobbe)\
**Post date:** [February 4, 2019, 11:59am UTC](https://discourse.julialang.org/t/coverage-jl-submit-ci-coverage-results-to-different-repo/20420/3 "2019-02-04T11:59:04Z")

</div>

Right. But does this also work when both are unregistered packages and `TestMain` uses `Main`? Wouldn’t that introduce a circular dependency? In that case, I don’t think you can add `TestMain` as a test-specific dependency.
