From db40fe8cd3d4a580520325bb59f94f158d8993c8 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 | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 20eb418..0a028bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,31 @@ +# 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: + - cargo build + - if [ "$TRAVIS_CPU_ARCH" == "amd64" ]; then cargo test -- --color always --nocapture ; fi + - cargo fmt -- --check + rust: - - stable - - beta + - 1.44.1 - nightly -matrix: + +jobs: allow_failures: - rust: nightly fast_finish: true -script: - - cargo build --verbose --all