Try fuzzing on Travis once more

They now have Xenial, it might just work.

Note after rebase: it does work, enabling this.
This commit is contained in:
Ruud van Asseldonk 2019-05-13 19:35:42 +02:00
parent 1a91a7022c
commit aaaf40bcbf
2 changed files with 5 additions and 8 deletions

View File

@ -16,8 +16,7 @@ rust:
# Opt for a less ancient distribution with a C++11-compliant compiler, in order
# to compile libfuzzer.
dist: trusty
sudo: false
dist: xenial
addons:
apt:
@ -28,8 +27,7 @@ cache:
directories:
# Cache the fuzzing corpus, so it does not have to discover the entire corpus
# again every time, and it can focus on finding bugs instead.
# TODO: This is broken, libfuzzer seems to not recognize the corpus somehow.
# - fuzz_corpus
- fuzz_corpus
# Cache the test samples to not put so much load on archive.org, but on
# Travis' S3 buckets instead.
@ -49,5 +47,4 @@ script:
- cargo test
# On the nightly configuration, fuzz for 15 minutes.
# TODO: This is broken, libfuzzer does not recognize the cached corpus.
# - FUZZ_SECONDS=900 tools/fuzz_on_ci.sh
- FUZZ_SECONDS=900 tools/fuzz_on_ci.sh

View File

@ -1,6 +1,6 @@
#!/bin/bash
# Fail on the first error, and print every command as it is executed.
# Fail on the first error.
set -e
if [[ "${TRAVIS_RUST_VERSION}" != "nightly" ]]; then
@ -8,7 +8,7 @@ if [[ "${TRAVIS_RUST_VERSION}" != "nightly" ]]; then
exit 0
fi
cargo install cargo-fuzz --vers 0.4.2 || true
cargo install cargo-fuzz --vers 0.5.2 || true
# Pre-populate the corpus with the test samples, if they did not exist already.
# Note that we do not cache the corpus directly on Travis, due to this bug: