-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (42 loc) · 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
41
42
43
44
45
46
47
sudo: required
language: rust
# Cache cargo symbols for faster build
cache: cargo
# Dependencies of kcov, used by coverage
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake # also required for cargo-update
sources:
- kalakris-cmake
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
- rust: beta
before_script:
- export PATH=$HOME/.cargo/bin:$PATH
- cargo install cargo-update || echo "cargo-update already installed"
- cargo install-update -a # update outdated cached binaries
script:
- cargo test
jobs:
include:
- stage: checks
before_script:
- rustup component add rustfmt-preview
- rustup component add clippy-preview
- cargo install cargo-travis || echo "cargo-travis already installed"
script:
- cargo fmt -- --check
- cargo clippy -- -D warnings
after_success:
- cargo coveralls
rust: stable