forked from fflorent/nom_locate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
63 lines (55 loc) · 1.39 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
51
52
53
54
55
56
57
58
59
60
61
62
63
language: rust
sudo: false
cache: cargo
dist: trusty
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
# load travis-cargo
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- |
cargo build --no-default-features --features="$FEATURES" &&
cargo test --no-default-features --features="$FEATURES" &&
travis-cargo --only stable doc
# Inspired from geal/nom
after_success:
- if [ "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" != "master" ] && [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
cargo install cargo-benchcmp --force;
cargo bench > benches-variable;
git fetch;
git checkout master;
cargo bench > benches-control;
cargo benchcmp benches-control benches-variable;
fi
- cargo coveralls --verbose;
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
matrix:
include:
- rust: stable
env: FEATURES='default'
- rust: stable
env: FEATURES='default verbose-errors'
- rust: stable
env: FEATURES=''
- rust: beta
env: FEATURES='default'
- rust: beta
env: FEATURES=''
- rust: nightly
env: FEATURES='default'
- rust: nightly
env: FEATURES='default verbose-errors'
- rust: nightly
env: FEATURES='alloc'
- rust: nightly
env: FEATURES=''