update Travis configs

Fixes: #11

Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
bin liu
2020-09-22 11:22:56 +08:00
parent 3852d7c180
commit db40fe8cd3

View File

@@ -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