-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (40 loc) · 1.05 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: xenial
sudo: required
cache: cargo
language: rust
addons:
apt:
packages:
- kcov
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake
- sourceline: ppa:sivakov512/kcov
rust:
- stable
before_script:
- rustup component add clippy
- rustup component add rustfmt
- rustup toolchain install stable --profile default
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
- export PATH=$HOME/.cargo/bin:$PATH
- cargo install cargo-update || echo "cargo-update already installed"
- cargo install cargo-travis || echo "cargo-travis already installed"
- cargo install-update -a
script:
- travis-cargo clippy -- --all-targets --all-features -- -D warnings
- travis-cargo build
- travis-cargo test
- travis-cargo test -- all-features
- cargo fmt -- --check --config-path rustfmt.toml
after_success:
- rm Cargo.lock
- cargo coveralls --verbose
- bash <(curl -s https://codecov.io/bash) && echo "Uploaded code coverage"
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""