From 8a29dfc27e4730cf313f22bb9568c179060a6209 Mon Sep 17 00:00:00 2001 From: bin liu Date: Tue, 22 Sep 2020 11:22:56 +0800 Subject: [PATCH] update Travis configs Fixes: #11 Signed-off-by: bin liu --- .travis.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 20eb418..1bd25de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,27 @@ +# Copyright (c) 2018 Levente Kurusa +# Copyright (c) 2020 Ant Group +# +# SPDX-License-Identifier: Apache-2.0 +# + +dist: bionic +os: linux language: rust + +before_script: + - rustup component add rustfmt + - cargo fmt -- --check + +script: + - cargo build --verbose + - cargo test --verbose + - sudo -E PATH=$PATH cargo test --verbose + rust: - stable - beta - nightly -matrix: + +jobs: allow_failures: - rust: nightly - fast_finish: true -script: - - cargo build --verbose --all