aboutsummaryrefslogtreecommitdiff
path: root/ci.sh
blob: 639731944c8665e778b92b0b7abea6960cbbbc6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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