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