Skip to content

Commit

Permalink
Rollup merge of rust-lang#27175 - steveklabnik:channels_plus_travis, …
Browse files Browse the repository at this point in the history
…r=alexcrichton

This should help people configure travis to test all three channels.
  • Loading branch information
steveklabnik committed Jul 22, 2015
2 parents b3cb492 + a29c834 commit 21d04c7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/doc/trpl/release-channels.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,26 @@ This will help alert the team in case there’s an accidental regression.
Additionally, testing against nightly can catch regressions even sooner, and so
if you don’t mind a third build, we’d appreciate testing against all channels.

As an example, many Rust programmers use [Travis](https://travis-ci.org/) to
test their crates, which is free for open source projects. Travis [supports
Rust directly][travis], and you can use a `.travis.yml` file like this to
test on all channels:

```yaml
language: rust
rust:
- nightly
- beta
- stable

matrix:
allow_failures:
- rust: nightly
```
[travis]: http://docs.travis-ci.com/user/languages/rust/
With this configuration, Travis will test all three channels, but if something
breaks on nightly, it won’t fail your build. A similar configuration is
recommended for any CI system, check the documentation of the one you’re
using for more details.

0 comments on commit 21d04c7

Please sign in to comment.