# Travis CI configuration with new Project.toml file

**URL:** <https://discourse.julialang.org/t/travis-ci-configuration-with-new-project-toml-file/23942>\
**Category:** General Usage\
**Created:** [May 7, 2019, 1:45am UTC](https://discourse.julialang.org/t/travis-ci-configuration-with-new-project-toml-file/23942 "2019-05-07T01:45:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balinus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/balinus/32/243_2.png) [@Balinus](https://discourse.julialang.org/u/Balinus)\
**Post date:** [May 7, 2019, 1:45am UTC](https://discourse.julialang.org/t/travis-ci-configuration-with-new-project-toml-file/23942/1 "2019-05-07T01:45:02Z")

</div>

Hello!

I’m trying to migrate my package to the new registration system. I generated a [Project.toml](https://github.com/Balinus/ClimateTools.jl/blob/optim_bc_drop29th/Project.toml) file that seems adequate. However, I’m having a strange bug during the CI process. It basically says that `Pkg` is not found in current path and that is should be installed with `Pkg` (!)

```julia
Error: Error building `ClimateTools`: 
│ ERROR: LoadError: ArgumentError: Package Pkg not found in current path:
Run `import Pkg; Pkg.add("Pkg")` to install the Pkg package

```

ClimateTools fails on Julia 0.7 and Julia 1.0, but pass on nightly (see links to build logs below). My guess is that it’s probably a matter of `.travis.yml` config, but I do not know where or how.

[Build logs](https://travis-ci.org/Balinus/ClimateTools.jl)  
[.travis.yml config](https://github.com/Balinus/ClimateTools.jl/blob/optim_bc_drop29th/.travis.yml)

Thanks for you help!

---

<div class="post-metadata">

**Author:** ![tkf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkf/32/17635_2.png) [@tkf](https://discourse.julialang.org/u/tkf)\
**Post date:** [May 7, 2019, 1:57am UTC](https://discourse.julialang.org/t/travis-ci-configuration-with-new-project-toml-file/23942/2 "2019-05-07T01:57:03Z")

</div>

I think this is because you are using `Pkg` in build.jl: [https://github.com/Balinus/ClimateTools.jl/blob/e87727077130e4d1d036e10aceccd67459271e43/deps/build.jl#L1](https://github.com/Balinus/ClimateTools.jl/blob/e87727077130e4d1d036e10aceccd67459271e43/deps/build.jl#L1)

The easiest fix would be to add `Pkg` as a dependency.

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [May 7, 2019, 9:20am UTC](https://discourse.julialang.org/t/travis-ci-configuration-with-new-project-toml-file/23942/3 "2019-05-07T09:20:13Z")

</div>

> [@Balinus](#):
>
> but pass on nightly

Yea, it actually shouldn’t, its a Pkg bug: [Test deps not required on nightly · Issue #1144 · JuliaLang/Pkg.jl · GitHub](https://github.com/JuliaLang/Pkg.jl/issues/1144)

---

<div class="post-metadata">

**Author:** ![Balinus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/balinus/32/243_2.png) [@Balinus](https://discourse.julialang.org/u/Balinus)\
**Post date:** [May 7, 2019, 2:38pm UTC](https://discourse.julialang.org/t/travis-ci-configuration-with-new-project-toml-file/23942/4 "2019-05-07T14:38:51Z")

</div>

Thanks! Added Pkg, Statistics and Test as dependencies and now the build is working.

Cheers!
