Build script for travis.
This commit is contained in:
parent
d75905d5df
commit
9e2622648b
3 changed files with 17 additions and 1 deletions
|
@ -8,4 +8,4 @@ rust:
|
|||
- nightly
|
||||
cache: cargo
|
||||
|
||||
script: bin/build
|
||||
script: bin/travis/script
|
||||
|
|
|
@ -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
14
bin/travis/script
Executable 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;
|
Loading…
Reference in a new issue