Add rustfmt config
[tutil.git] / .travis.yml
blob8af68931cec076df70a381d446b51099d8fdfb85
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 cache: cargo
22 env:
23   global:
24   - TRAVIS_CARGO_NIGHTLY_FEATURE=lints
26 notifications:
27   webhooks:
28     urls:
29       - $GITTER_WEBHOOK
30     on_success: change
31     on_failure: always
32     on_start: never
34 before_script:
35   - |
36     if [ "$TRAVIS_OS_NAME" == 'linux' ]; then
37       pip install 'travis-cargo<0.2' --user &&
38       export PATH=$HOME/.local/bin:$PATH
39     elif [ "$TRAVIS_OS_NAME" == 'osx' ]; then
40       echo 'travis-cargo is not supported on OS X builds.'
41     fi
43 script:
44   - |
45     if [ "$TRAVIS_OS_NAME" == 'linux' ]; then
46       travis-cargo build &&
47       travis-cargo test
48     else
49       cargo build --verbose &&
50       cargo test --verbose
51     fi
53 after_success:
54   - |
55     if [ "$TRAVIS_OS_NAME" == 'linux' ]; then
56       travis-cargo --only stable coveralls --no-sudo --verify
57     fi