diff options
Diffstat (limited to 'ci/script.sh')
-rw-r--r-- | ci/script.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/ci/script.sh b/ci/script.sh index 9fd46a3..20a8ea2 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -1,6 +1,10 @@ set -euxo pipefail main() { + if [ $TRAVIS_RUST_VERSION = nightly ]; then + export RUSTFLAGS="-D warnings" + fi + cargo check --target $TARGET if [ $TRAVIS_RUST_VERSION = nightly ]; then @@ -23,9 +27,10 @@ main() { cargo test --target $TARGET ;; esac + + if [ $TARGET = x86_64-unknown-linux-gnu ]; then + ./check-blobs.sh + fi } -# NOTE See the NOTE in `install.sh` -if [ $TRAVIS_BRANCH != master ] || [ $TRAVIS_EVENT_TYPE = cron ]; then - main -fi +main |