Rollup merge of #27175 - steveklabnik:channels_plus_travis, r=alexcrichton

This should help people configure travis to test all three channels.
This commit is contained in:
Steve Klabnik 2015-07-22 12:56:52 -04:00
commit 068e7d7039

View File

@ -43,3 +43,26 @@ This will help alert the team in case theres an accidental regression.
Additionally, testing against nightly can catch regressions even sooner, and so
if you dont mind a third build, wed 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 wont fail your build. A similar configuration is
recommended for any CI system, check the documentation of the one youre
using for more details.