mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
And in Travis CI, treat warnings as error to keep from merging codes with warning. Fixes: #13 Signed-off-by: bin liu <bin@hyper.sh>
32 lines
497 B
YAML
32 lines
497 B
YAML
# Copyright (c) 2018 Levente Kurusa
|
|
# Copyright (c) 2020 Ant Group
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
dist: bionic
|
|
os: linux
|
|
language: rust
|
|
cache: cargo
|
|
|
|
arch:
|
|
- amd64
|
|
- arm64
|
|
|
|
install:
|
|
- rustup component add rustfmt
|
|
|
|
script:
|
|
- RUSTFLAGS="--deny warnings" cargo build
|
|
- if [ "$TRAVIS_CPU_ARCH" == "amd64" ]; then cargo test -- --color always --nocapture ; fi
|
|
- cargo fmt -- --check
|
|
|
|
rust:
|
|
- 1.44.1
|
|
- nightly
|
|
|
|
jobs:
|
|
allow_failures:
|
|
- rust: nightly
|
|
fast_finish: true
|