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

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

[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

$ 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.

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).

1 Like

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).

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, and nothing shows up on codecov.io.
Any thoughts why this is the case, I have it in my Project.toml?

Most packages have something like