# Julia v0.7 causing Travis nightly build to fail

**URL:** <https://discourse.julialang.org/t/julia-v0-7-causing-travis-nightly-build-to-fail/3827>\
**Category:** General Usage\
**Created:** [May 20, 2017, 7:31pm UTC](https://discourse.julialang.org/t/julia-v0-7-causing-travis-nightly-build-to-fail/3827 "2017-05-20T19:31:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [May 20, 2017, 7:31pm UTC](https://discourse.julialang.org/t/julia-v0-7-causing-travis-nightly-build-to-fail/3827/1 "2017-05-20T19:31:23Z")

</div>

Recently my package’s nightly build on travis started to break.

// i.e. not my release builds, they still pass

I checked the logs and it seems to be because they now run `v0.7` of Julia.

What’s the best way to prevent this?

- do I change something in my `REQUIRE` file?
- do I edit my `.travis.yml` file?

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [May 20, 2017, 7:34pm UTC](https://discourse.julialang.org/t/julia-v0-7-causing-travis-nightly-build-to-fail/3827/2 "2017-05-20T19:34:56Z")

</div>

> [@djsegal](#):
>
> What’s the best way to prevent this?
> 
> do I change something in my REQUIRE file?  
> do I edit my .travis.yml file?

I find it good to test but ignore the failures on unreleased versions. This way you can track the changes, but aren’t tied to supporting them.

[https://github.com/JuliaDiffEq/OrdinaryDiffEq.jl/blob/master/.travis.yml](https://github.com/JuliaDiffEq/OrdinaryDiffEq.jl/blob/master/.travis.yml)

[https://github.com/JuliaDiffEq/OrdinaryDiffEq.jl/blob/master/appveyor.yml](https://github.com/JuliaDiffEq/OrdinaryDiffEq.jl/blob/master/appveyor.yml)

---

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [May 20, 2017, 7:50pm UTC](https://discourse.julialang.org/t/julia-v0-7-causing-travis-nightly-build-to-fail/3827/3 "2017-05-20T19:50:10Z")

</div>

What if you have Documenter.jl hooked up to tests passing?

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [May 20, 2017, 8:07pm UTC](https://discourse.julialang.org/t/julia-v0-7-causing-travis-nightly-build-to-fail/3827/4 "2017-05-20T20:07:21Z")

</div>

You can specify which OS / Julia version will be the one to run the Documenter build.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [May 20, 2017, 8:27pm UTC](https://discourse.julialang.org/t/julia-v0-7-causing-travis-nightly-build-to-fail/3827/5 "2017-05-20T20:27:18Z")

</div>

> [@djsegal](#):
>
> What if you have Documenter.jl hooked up to tests passing?

Just set Documenter to use release for building. Honestly, that should be the default IMO

> <https://github.com/JuliaDocs/Documenter.jl/pull/466>
>
> There are many times when a package won't work on nightly. But this means that b…y default the docs won't build for many packages. It's probably better to build on the current release.

---

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [May 21, 2017, 4:40am UTC](https://discourse.julialang.org/t/julia-v0-7-causing-travis-nightly-build-to-fail/3827/6 "2017-05-21T04:40:39Z")

</div>

Is there a way in Travis to not say the whole build failed though?

Like I want a green checkmark on github.

Right now, this prevents other addons (like codecov) from displaying if a build fails.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [May 21, 2017, 4:59am UTC](https://discourse.julialang.org/t/julia-v0-7-causing-travis-nightly-build-to-fail/3827/7 "2017-05-21T04:59:57Z")

</div>

> [@djsegal](#):
>
> Is there a way in Travis to not say the whole build failed though?
> 
> Like I want a green checkmark on github.
> 
> Right now, this prevents other addons (like codecov) from displaying if a build fails.

See what I already linked above for how to ignore failures.

---

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [May 21, 2017, 5:09am UTC](https://discourse.julialang.org/t/julia-v0-7-causing-travis-nightly-build-to-fail/3827/8 "2017-05-21T05:09:03Z")

</div>

Sorry, got buried. Thanks man.

// added this code to .travis.yml:

```julia
matrix:
  allow_failures:
  - julia: nightly

```
