# Test on Julia nightly fails - ERROR: UndefVarError: clone not defined

**URL:** <https://discourse.julialang.org/t/test-on-julia-nightly-fails-error-undefvarerror-clone-not-defined/33266>\
**Category:** Tooling\
**Tags:** nightly, travis\
**Created:** [January 12, 2020, 1:06pm UTC](https://discourse.julialang.org/t/test-on-julia-nightly-fails-error-undefvarerror-clone-not-defined/33266 "2020-01-12T13:06:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cserteGT3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/csertegt3/32/8283_2.png) [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Post date:** [January 12, 2020, 1:06pm UTC](https://discourse.julialang.org/t/test-on-julia-nightly-fails-error-undefvarerror-clone-not-defined/33266/1 "2020-01-12T13:06:51Z")

</div>

# Note

Originally posted to the [travis community](https://travis-ci.community/t/test-on-julia-nightly-fails-error-undefvarerror-clone-not-defined/6787). I’ll update both posts, when a solution is found.

# (re)Post

I am trying to update the CI and documentation of [Observables.jl](https://github.com/JuliaGizmos/Observables.jl). To update the travis script, I used PkgTemplates. The following is the result:

```yaml
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
os:
  - linux
  - osx
julia:
  - 0.7
  - 1.0
  - 1.3
  - nightly
matrix:
  allow_failures:
    - julia: nightly
notifications:
  email: false
after_success:
  - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
  - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'
jobs:
  include:
    - stage: Documentation
      julia: 1.0
      script: julia --project=docs -e '
          using Pkg;
          Pkg.develop(PackageSpec(path=pwd()));
          Pkg.instantiate();
          include("docs/make.jl");'
      after_success: skip

```

My problem is that the testing fails on nightly builds of Julia. The error:

```julia-auto
$ julia --color=yes -e "VERSION >= v\"0.7.0-DEV.5183\" && using Pkg; Pkg.clone(pwd()); if VERSION >= v\"1.1.0-rc1\"; Pkg.build(\"${JL_PKG}\"; verbose=true); else Pkg.build(\"${JL_PKG}\"); end"
ERROR: UndefVarError: clone not defined
Stacktrace:
 [1] getproperty(::Module, ::Symbol) at ./Base.jl:26
 [2] top-level scope at none:1
The command "julia --color=yes -e "VERSION >= v\"0.7.0-DEV.5183\" && using Pkg; Pkg.clone(pwd()); if VERSION >= v\"1.1.0-rc1\"; Pkg.build(\"${JL_PKG}\"; verbose=true); else Pkg.build(\"${JL_PKG}\"); end"" failed and exited with 1 during .

```

Builds are [here](https://travis-ci.com/cserteGT3/Observables.jl/builds/143721818). Tests also fail on AppVeyor on the nightly builds with the same error (see [here](https://ci.appveyor.com/project/cserteGT3/observables-jl/builds/29996607)).

What did I do wrong?  
cc-ing @ararslan, @staticfloat, @StefanKarpinski

---

<div class="post-metadata">

**Author:** ![simonster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simonster/32/36_2.png) [@simonster](https://discourse.julialang.org/u/simonster)\
**Post date:** [February 16, 2020, 9:18pm UTC](https://discourse.julialang.org/t/test-on-julia-nightly-fails-error-undefvarerror-clone-not-defined/33266/2 "2020-02-16T21:18:49Z")

</div>

As I recently discovered, this happens if you don’t have a `Project.toml` file in the repository.

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [May 6, 2020, 8:28pm UTC](https://discourse.julialang.org/t/test-on-julia-nightly-fails-error-undefvarerror-clone-not-defined/33266/3 "2020-05-06T20:28:19Z")

</div>

I have been getting similar complaints lately from the nightly build. I’m not even sure what to report. Here’s the bottom line on the error:

```julia
The command "julia --color=yes -e "if VERSION < v\"0.7.0-DEV.5183\"; cd(Pkg.dir(\"${JL_PKG}\")); else using Pkg; end; Pkg.add(\"Coverage\"); using Coverage; Codecov.submit(process_folder())"" exited with 1.

```
