23 lines
584 B
YAML
23 lines
584 B
YAML
language: rust
|
|
required: sudo
|
|
services:
|
|
- docker
|
|
matrix:
|
|
allow_failures:
|
|
- rust: nightly
|
|
include:
|
|
- rust: stable
|
|
- rust: nightly
|
|
env:
|
|
- FEATURES='asm,unstable'
|
|
before_script: |
|
|
export PATH="$PATH:$HOME/.cargo/bin"
|
|
rustup component add rustfmt-preview
|
|
script:
|
|
- cargo fmt -- --write-mode=diff
|
|
- cargo build --verbose --features "$FEATURES"
|
|
- cargo test --verbose --features "$FEATURES"
|
|
after_success: |
|
|
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
|