forked from kstep/rust-mpd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (43 loc) · 1.08 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
sudo: required
language: rust
cache: cargo
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
rust:
- stable
- nightly-2017-02-05
env:
global:
# override the default `--features unstable` used for the nightly branch
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
# Version of clippy known to work with pinned nightly.
- CLIPPY_VERSION=0.0.113
before_script:
- sudo apt-get update -qq
- sudo apt-get install -y mpd
# Stop mpd service to ensure we use the test-started ones.
- sudo /etc/init.d/mpd stop
- /usr/bin/mpd --version
- export PATH=$HOME/.cargo/bin:$HOME/.local/bin:$PATH
- |
pip install 'travis-cargo<0.2' --user &&
travis-cargo --only nightly install -- --force clippy --vers CLIPPY_VERSION
- |
cargo install --force rustfmt
script:
- |
RUSTFLAGS=-Dwarnings travis-cargo build &&
travis-cargo test
- |
cargo fmt -- --write-mode diff
- |
travis-cargo --only nightly clippy
- |
travis-cargo --only stable doc
after_success:
- travis-cargo coveralls --no-sudo --verify