# How do I configure .travis.yml to run julia with depwarn=no (and another question)

**URL:** <https://discourse.julialang.org/t/how-do-i-configure-travis-yml-to-run-julia-with-depwarn-no-and-another-question/35558>\
**Category:** General Usage\
**Tags:** travis\
**Created:** [March 5, 2020, 6:38am UTC](https://discourse.julialang.org/t/how-do-i-configure-travis-yml-to-run-julia-with-depwarn-no-and-another-question/35558 "2020-03-05T06:38:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Post date:** [March 5, 2020, 6:38am UTC](https://discourse.julialang.org/t/how-do-i-configure-travis-yml-to-run-julia-with-depwarn-no-and-another-question/35558/1 "2020-03-05T06:38:04Z")

</div>

my current .travis.yml:

```julia
language: julia
os:
  - linux
# - osx

julia:
 - 1.3
 - nightly

notifications:
  email: false

jobs:
  allow_failures:
    - julia: nightly
  include:
    - stage: "Documentation"
      julia: 1.3
      os: linux
      script:
        - julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
        - julia --project=docs/ docs/make.jl
      name: "HTML"
      after_success: skip

after_success:
  - julia -e 'using Pkg; import LightGraphs; cd(joinpath(dirname(pathof(LightGraphs)), "..")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'

```

1. I’d like to pass `--depwarn=no` to travis for a while. What’s the best way to do that?
2. I [read](https://docs.travis-ci.com/user/languages/julia#coverage) that `codecov: true` will automatically submit coverage. Does that mean I can set that and get rid of the `Pkg.add("Coverage")` line in `after_success`?

---

<div class="post-metadata">

**Author:** ![christopher-dG](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher-dg/32/7387_2.png) [@christopher-dG](https://discourse.julialang.org/u/christopher-dG)\
**Post date:** [March 5, 2020, 6:44am UTC](https://discourse.julialang.org/t/how-do-i-configure-travis-yml-to-run-julia-with-depwarn-no-and-another-question/35558/2 "2020-03-05T06:44:56Z")

</div>

Question 1: You can set the `script` at the top level to basically [the default](https://docs.travis-ci.com/user/languages/julia/#default-build-and-test-script), but adding your custom flags in as well.  
So maybe:

```nohighlight
script: julia --depwarn=no -e 'using Pkg; Pkg.build(); Pkg.test(coverage=true)'

```

Question 2: I think it works mostly but there are some issues with it, see [here](https://github.com/invenia/PkgTemplates.jl/issues/68) for some context.

---

<div class="post-metadata">

**Author:** ![dilumaluthge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilumaluthge/32/29283_2.png) [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Post date:** [March 5, 2020, 7:31am UTC](https://discourse.julialang.org/t/how-do-i-configure-travis-yml-to-run-julia-with-depwarn-no-and-another-question/35558/3 "2020-03-05T07:31:01Z")

</div>

As far as question 2 (the coverage question): I would recommend keeping it the traditional way with the `after_success` section.

I’ve had trouble trying to get `codecov: true` to work properly.
