Allow failures for nightly Rust
[tutil.git] / .travis.yml
blob4d285642a714513b6cd5b90d8278443cf5a21bc6
1 language: rust
3 os:
4   - linux
5   - osx
7 addons:
8   apt:
9     packages:
10     - libcurl4-openssl-dev
11     - libelf-dev
12     - libdw-dev
13     - binutils-dev
15 rust:
16 - nightly
17 - beta
18 - stable
20 matrix:
21   allow_failures:
22       - rust: nightly
24 cache: cargo
26 env:
27   global:
28   - TRAVIS_CARGO_NIGHTLY_FEATURE=lints
30 notifications:
31   webhooks:
32     urls:
33       - $GITTER_WEBHOOK
34     on_success: change
35     on_failure: always
36     on_start: never
38 before_script:
39   - |
40     if [ "$TRAVIS_OS_NAME" == 'linux' ]; then
41       pip install 'travis-cargo<0.2' --user &&
42       export PATH=$HOME/.local/bin:$PATH
43     elif [ "$TRAVIS_OS_NAME" == 'osx' ]; then
44       echo 'travis-cargo is not supported on OS X builds.'
45     fi
47 script:
48   - |
49     if [ "$TRAVIS_OS_NAME" == 'linux' ]; then
50       travis-cargo build &&
51       travis-cargo test
52     else
53       cargo build --verbose &&
54       cargo test --verbose
55     fi
57 after_success:
58   - |
59     if [ "$TRAVIS_OS_NAME" == 'linux' ]; then
60       travis-cargo --only stable coveralls --no-sudo --verify
61     fi