Files
rand/utils/ci/script.sh
T
Diggory Hardy dab89ab07c Add rand-core sub-crate and update version numbers
This moves core traits/types/impls to rand-core
impls and le modules are now public (from rand-core only)
CI tweaks, needed since not all features are duplicated on rand-core
Cross-crate doc links now use full URLs (is there a better option?)
2018-03-10 11:31:19 +00:00

28 lines
794 B
Bash

# Derived from https://github.com/japaric/trust
set -ex
main() {
if [ ! -z $DISABLE_TESTS ]; then
cross build --all --no-default-features --target $TARGET --release
if [ -z $DISABLE_STD ]; then
cross build --features log,serde-1 --target $TARGET
fi
return
fi
if [ ! -z $NIGHTLY ]; then
cross test --all --tests --no-default-features --features alloc --target $TARGET
cross test --features serde-1,log,nightly --target $TARGET
cross test --all --benches --target $TARGET
else
cross test --all --tests --no-default-features --target $TARGET
cross test --features serde-1,log --target $TARGET
fi
}
# we don't run the "test phase" when doing deploys
if [ -z $TRAVIS_TAG ]; then
main
fi