Build benchmark tests in Travis.

This commit is contained in:
Nathan Holstein 2018-06-02 09:26:44 -04:00 committed by Benjamin Fry
parent 5d6460538f
commit ebc131c120
2 changed files with 16 additions and 0 deletions

View File

@ -125,6 +125,12 @@ matrix:
script:
- cargo fmt --all -- --write-mode=diff
# benchmark tests; built but not run in Travis to avoid inconsistent timing results
- rust: nightly
env: NAME=bench
script:
- scripts/build_benches.sh
# compatiblity tests
- rust: stable
env: NAME=compatiblity

10
scripts/build_benches.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash -e
set -x
trust_dns_dir=$(dirname $0)/..
cd $trust_dns_dir
# Benchmark tests build only on nightly
cargo bench --no-run