forked from greshake/i3status-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 1.1 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
dist: trusty
language: rust
rust:
- stable
- nightly
addons:
apt:
sources:
- chef-current-trusty
packages:
- libdbus-1-dev
- libgoogle-perftools-dev
- libnotmuch-dev
- pandoc
cache: cargo
before_cache:
- rm -rfv target/debug/incremental/i3status_rs-*
- rm -rfv target/debug/.fingerprint/i3status-rs-*
- rm -rfv target/debug/build/i3status_rs-*
- rm -rfv target/debug/deps/libi3status_rs-*
- rm -rfv target/debug/deps/i3status_rs-*
- rm -rfv target/debug/i3status-rs.d
- cargo clean --package i3status-rs
os:
- linux
matrix:
allow_failures:
- rust: nightly
env:
- RUSTFLAGS="-D warnings"
before_script:
- rustup component add rustfmt
- rustup component add clippy || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
script:
- man/generate.sh man/test.1 && diff man/test.1 man/i3status-rs.1 || true
- cargo fmt -- --check
- cargo clippy -- -D warnings
- cargo build --all-features --all-targets --verbose
- cargo build --all-features --all-targets --verbose --release
- cargo test --all-features --all-targets --verbose