Build script for travis.

This commit is contained in:
Alex Helfet 2017-12-22 20:24:20 +00:00
commit 9e2622648b
2 changed files with 17 additions and 1 deletions

View file

@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -ex
# A simple build script to run locally.
cargo +stable build --verbose;
cargo +nightly test --verbose;

14
bin/travis/script Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
echo "TRAVIS_RUST_VERSION: '${TRAVIS_RUST_VERSION}'"
set -x
cargo build --verbose;
if [[ "${TRAVIS_RUST_VERSION}" != "stable" ]]; then
cargo test --verbose;
cargo test --verbose --no-default-features;
fi
cargo doc --verbose;