24 lines
1.2 KiB
Bash
24 lines
1.2 KiB
Bash
|
#!/bin/bash
|
||
|
set -ev
|
||
|
if [ "${CLIPPY}" = "true" ]; then
|
||
|
if cargo install clippy -f; then
|
||
|
(cd serde && cargo clippy --features unstable-testing -- -Dclippy)
|
||
|
(cd serde_derive && cargo clippy --features unstable-testing -- -Dclippy)
|
||
|
(cd test_suite && cargo clippy --features unstable-testing -- -Dclippy)
|
||
|
(cd test_suite/deps && cargo clippy -- -Dclippy)
|
||
|
(cd test_suite/no_std && cargo clippy -- -Dclippy)
|
||
|
else
|
||
|
echo "could not compile clippy, ignoring clippy tests"
|
||
|
fi
|
||
|
else
|
||
|
(cd serde && travis-cargo build)
|
||
|
(cd serde && travis-cargo --only beta test)
|
||
|
(cd serde && travis-cargo --only nightly test -- --features unstable-testing)
|
||
|
(cd serde && travis-cargo build -- --no-default-features)
|
||
|
(cd serde && travis-cargo --only nightly build -- --no-default-features --features alloc)
|
||
|
(cd serde && travis-cargo --only nightly build -- --no-default-features --features collections)
|
||
|
(cd test_suite && travis-cargo --only beta test)
|
||
|
(cd test_suite/deps && travis-cargo --only nightly build)
|
||
|
(cd test_suite travis-cargo --only nightly test -- --features unstable-testing)
|
||
|
(cd test_suite/no_std && travis-cargo --only nightly build)
|
||
|
fi
|