# Even though it is in Project.toml, travis-ci does not recognize package

**URL:** https://discourse.julialang.org/t/even-though-it-is-in-project-toml-travis-ci-does-not-recognize-package/25782
**Category:** General Usage
**Tags:** travis
**Created:** [June 27, 2019, 11:32pm UTC](https://discourse.julialang.org/t/even-though-it-is-in-project-toml-travis-ci-does-not-recognize-package/25782 "2019-06-27T23:32:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![holger](https://avatars.discourse-cdn.com/v4/letter/h/ed8c4c/32.png) [@holger](https://discourse.julialang.org/u/holger)
#### Post date: [June 27, 2019, 11:32pm UTC](https://discourse.julialang.org/t/even-though-it-is-in-project-toml-travis-ci-does-not-recognize-package/25782/1 "2019-06-27T23:32:25Z")

</div>

I have updated my Project.toml file and would appreciate your help:

When I try to run my tests on travis-ci, I get an error that the package JLD2 is not installed even though I have it in my Project.toml file [extras] and [targets].

My Project.toml file:  
[https://github.com/holgerteichgraeber/ClustForOpt.jl/blob/testing/Project.toml](https://github.com/holgerteichgraeber/ClustForOpt.jl/blob/testing/Project.toml)

> [extras]  
> Pkg = “44cfe95a-1eb2-52ea-b672-e2afdf69b78f”  
> Test = “8dfed614-e22c-5e08-85e1-65c5234f0b40”  
> StatsBase = “2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91”  
> Cbc = “9961bab8-2fa3-5c5a-9d89-47fab24efd76”  
> Random = “9a3f8284-a2c9-5f02-9a11-845980a1fd5c”  
> JLD2 = “033835bb-8acc-5ee8-8aae-3f567f8a3819”

> [targets]  
> test = [“Pkg”,“Test”,“StatsBase”,“Cbc”,“Random”,“JLD2”]

The error on travis-ci:  
[https://travis-ci.com/holgerteichgraeber/ClustForOpt.jl/jobs/211685679](https://travis-ci.com/holgerteichgraeber/ClustForOpt.jl/jobs/211685679)

> $ julia --project=test/ test/runtests.jl  
> ERROR: LoadError: ArgumentError: Package JLD2 not found in current path:
> 
> - Run `import Pkg; Pkg.add("JLD2")` to install the JLD2 package.

---

<div class="post-metadata">

### Author: ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)
#### Post date: [June 28, 2019, 12:58am UTC](https://discourse.julialang.org/t/even-though-it-is-in-project-toml-travis-ci-does-not-recognize-package/25782/2 "2019-06-28T00:58:48Z")

</div>

I think this may be because you have a custom “Testing” job in your `.travis.yml` where you use `julia --project=test/`, but there’s no `Project.toml` in the test directory (and the test targets are in the `Project.toml` in the package root).

---

<div class="post-metadata">

### Author: ![holger](https://avatars.discourse-cdn.com/v4/letter/h/ed8c4c/32.png) [@holger](https://discourse.julialang.org/u/holger)
#### Post date: [June 28, 2019, 1:00am UTC](https://discourse.julialang.org/t/even-though-it-is-in-project-toml-travis-ci-does-not-recognize-package/25782/3 "2019-06-28T01:00:46Z")

</div>

I see, thank you. Do I understand it correctly that I could just delete the seperate testing job, because the tests will be done by Coverage.jl anyways? ( I just started using Coverage.jl).

---

<div class="post-metadata">

### Author: ![holger](https://avatars.discourse-cdn.com/v4/letter/h/ed8c4c/32.png) [@holger](https://discourse.julialang.org/u/holger)
#### Post date: [June 28, 2019, 1:24am UTC](https://discourse.julialang.org/t/even-though-it-is-in-project-toml-travis-ci-does-not-recognize-package/25782/4 "2019-06-28T01:24:01Z")

</div>

Thank you. After deleting the testing part, it runs on travis-ci.  
However, Coverage does not yield any results.  
There is nothing that points to it on travis-ci [https://travis-ci.com/holgerteichgraeber/ClustForOpt.jl/jobs/211700902](https://travis-ci.com/holgerteichgraeber/ClustForOpt.jl/jobs/211700902), and nothing shows up on [codecov.io](http://codecov.io).  
Any thoughts why this is the case, I have it in my Project.toml?

---

<div class="post-metadata">

### Author: ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)
#### Post date: [June 28, 2019, 3:52am UTC](https://discourse.julialang.org/t/even-though-it-is-in-project-toml-travis-ci-does-not-recognize-package/25782/5 "2019-06-28T03:52:17Z")

</div>

Most packages have something like

[https://github.com/JuliaLang/Pkg.jl/blob/bce179268c9ccb1632a37d389f72fd93bd776dba/.travis.yml#L62-L64](https://github.com/JuliaLang/Pkg.jl/blob/bce179268c9ccb1632a37d389f72fd93bd776dba/.travis.yml#L62-L64)
