1#!/bin/bash -x 2set -ex 3 4if [[ "$TRAVIS_RUST_VERSION" == "1.40.0" ]]; then 5 cargo "$@" check 6 cargo "$@" check --no-default-features 7else 8 cargo "$@" build 9 cargo "$@" test --all-features 10 cargo "$@" test --all-features --examples 11 12 cargo "$@" test --bench json --bench http -- --test 13 cargo "$@" check --bench mp4 --features mp4 14 15 cargo "$@" build --no-default-features --features alloc 16 cargo "$@" test --no-default-features --features alloc --examples 17 18 cargo "$@" build --no-default-features 19 cargo "$@" test --no-default-features --examples 20 21 cargo "$@" check --no-default-features --features tokio-02 22 cargo "$@" check --no-default-features --features tokio-03 23fi 24 25if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then 26 cargo doc 27fi 28