Run tests in release mode.

This commit is contained in:
Sergey Pepyakin 2018-06-12 14:03:04 +03:00
parent bef642e3fd
commit 803085d5ab
2 changed files with 5 additions and 3 deletions

View File

@ -25,7 +25,9 @@ script:
# Make sure fuzz targets are not broken.
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo check --tests --manifest-path=fuzz/Cargo.toml; fi
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo check --benches --manifest-path=benches/Cargo.toml; fi
- ./test.sh
# Run tests in the release mode since some of the tests from the spec
# perfrom reaaally bad in the debug mode.
- CARGOFLAGS=--release ./test.sh
- ./doc.sh
after_success: |
# Build documentation and deploy it to github pages.

View File

@ -1,9 +1,9 @@
#!/usr/bin/env bash
set -eux
set -ex
cd $(dirname $0)
time cargo test
time cargo test $CARGOFLAGS
cd -