forked from rust-bakery/nom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (53 loc) · 1.8 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
language: rust
cache: cargo
rust:
- nightly
- beta
- stable
- 1.2.0
env:
matrix:
- FEATURES='--features "regexp regexp_macros"'
- FEATURES='--features "stream regexp regexp_macros"'
- FEATURES='--features "stream regexp regexp_macros" --no-default-features'
before_script:
- if [ "$TRAVIS_RUST_VERSION" != "1.2.0" ]; then
cargo install cargo-travis --force && export PATH=$HOME/.cargo/bin:$PATH;
fi
script:
- '[ $TRAVIS_RUST_VERSION != 1.2.0 ] || cargo test --verbose --features "regexp"'
- '[ $TRAVIS_RUST_VERSION != nightly ] || cargo build --verbose --features "nightly regexp"'
- '[ $TRAVIS_RUST_VERSION == 1.2.0 ] || eval cargo test --verbose $FEATURES'
- '[ $TRAVIS_RUST_VERSION != nightly ] || cargo bench --verbose'
- '[ $TRAVIS_RUST_VERSION != stable ] || cargo doc --verbose --features "std stream regexp regexp_macros" --no-default-features'
after_success:
- '[ $TRAVIS_RUST_VERSION != nightly ] || cargo bench --verbose'
- '[ $TRAVIS_RUST_VERSION == 1.2.0 ] || cargo coveralls --verbose'
- '[ $TRAVIS_RUST_VERSION != nightly ] || cargo bench --verbose'
- 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
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/9c035a194ac4fd4cc061
on_success: change
on_failure: always
on_start: false
dist: trusty
sudo: false
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake