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

my current .travis.yml:

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 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?

Question 1: You can set the script at the top level to basically the default, but adding your custom flags in as well.
So maybe:

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 for some context.

2 Likes

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.

2 Likes