-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
44 lines (44 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
44
sudo: false
language: rust
cache: cargo
rust:
- beta
- stable
- nightly
matrix:
include:
- rust: nightly-2017-10-09
env: CLIPPY_VERS="0.0.165"
before_script: |
[[ "$(cargo +nightly-2017-10-09 clippy --version)" != "$CLIPPY_VERS" ]] && \
cargo +nightly-2017-10-09 install clippy --vers "$CLIPPY_VERS" --force || true
script: |
cargo +nightly-2017-10-09 clippy -- -D warnings
- rust: nightly-2017-10-09
env: RUSTFMT_VERS="0.2.8"
before_script: |
[[ "$(cargo +nightly-2017-10-09 fmt -- --version)" != "$RUSTFMT_VERS"* ]] && \
cargo +nightly-2017-10-09 install rustfmt-nightly --vers "$RUSTFMT_VERS" --force || true
script: |
cargo +nightly-2017-10-09 fmt --all -- --write-mode=diff
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- |
travis-cargo build &&
travis-cargo clean &&
travis-cargo test &&
travis-cargo bench
notifications:
email:
on_success: never
branches:
only:
- master
- staging
- trying
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""