-
Notifications
You must be signed in to change notification settings - Fork 28
/
.travis.yml
50 lines (41 loc) · 1.14 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: rust
rust:
# Test every third release since the first supported version, so we don't
# waste so many resources.
- 1.13.0
- 1.16.0
- 1.19.0
- 1.21.0
- 1.24.0
- 1.27.0
- 1.30.0
- 1.33.0
- beta
- nightly
# Opt for a less ancient distribution with a C++11-compliant compiler, in order
# to compile libfuzzer.
dist: xenial
addons:
apt:
packages:
- flac
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.
- fuzz_corpus
# Cache the test samples to not put so much load on archive.org, but on
# Travis' S3 buckets instead.
- testsamples
# Cargo directories, the default when we could set "cache: cargo". See also
# https://github.com/travis-ci/travis-build/pull/710
- $HOME/.cargo
- $TRAVIS_BUILD_DIR/target
before_script:
- cd testsamples && ./populate.sh && cd ..
script:
# Do not use the default --verbose commands, they are only noisy.
- cargo build
- cargo test
# On the nightly configuration, fuzz for 15 minutes.
- FUZZ_SECONDS=900 tools/fuzz_on_ci.sh