2018-02-14 13:19:30 -08:00
|
|
|
language: rust
|
2018-02-16 07:42:37 -08:00
|
|
|
required: sudo
|
|
|
|
services:
|
|
|
|
- docker
|
2018-02-14 13:19:30 -08:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
|
|
|
include:
|
2018-02-15 14:26:45 -08:00
|
|
|
- rust: stable
|
2018-02-14 13:19:30 -08:00
|
|
|
- rust: nightly
|
|
|
|
env:
|
2018-03-19 15:42:28 -07:00
|
|
|
- FEATURES='unstable'
|
2018-02-15 15:09:11 -08:00
|
|
|
before_script: |
|
|
|
|
export PATH="$PATH:$HOME/.cargo/bin"
|
|
|
|
rustup component add rustfmt-preview
|
2018-02-14 13:19:30 -08:00
|
|
|
script:
|
|
|
|
- cargo fmt -- --write-mode=diff
|
|
|
|
- cargo build --verbose --features "$FEATURES"
|
|
|
|
- cargo test --verbose --features "$FEATURES"
|
2018-02-15 15:09:11 -08:00
|
|
|
after_success: |
|
2018-02-16 07:42:37 -08:00
|
|
|
docker run -it --rm --security-opt seccomp=unconfined --volume "$PWD:/volume" elmtai/docker-rust-kcov
|
|
|
|
bash <(curl -s https://codecov.io/bash) -s target/cov
|