28 lines
780 B
Bash
Executable File
28 lines
780 B
Bash
Executable File
#!/bin/bash -x
|
|
set -ex
|
|
|
|
if [[ "$TRAVIS_RUST_VERSION" == "1.40.0" ]]; then
|
|
cargo "$@" check
|
|
cargo "$@" check --no-default-features
|
|
else
|
|
cargo "$@" build
|
|
cargo "$@" test --all-features
|
|
cargo "$@" test --all-features --examples
|
|
|
|
cargo "$@" test --bench json --bench http -- --test
|
|
cargo "$@" check --bench mp4 --features mp4
|
|
|
|
cargo "$@" build --no-default-features --features alloc
|
|
cargo "$@" test --no-default-features --features alloc --examples
|
|
|
|
cargo "$@" build --no-default-features
|
|
cargo "$@" test --no-default-features --examples
|
|
|
|
cargo "$@" check --no-default-features --features tokio-02
|
|
cargo "$@" check --no-default-features --features tokio-03
|
|
fi
|
|
|
|
if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then
|
|
cargo doc
|
|
fi
|