forked from kriomant/mockers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (39 loc) · 1.5 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
language: rust
rust:
- nightly
# necessary for `travis-cargo coveralls --no-sudo`
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev # optional: only required for the --verify flag of coveralls
# load travis-cargo
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
# the main build
script:
# This section must be synchronized with 'test.sh' script.
# `mockers` library itself can be build with any Rust channel
# if you turn off default "nightly" feature.
- (cd mockers && travis-cargo build -- --no-default-features)
# Full-features `mockers` can be build by nightly Rust only.
- (cd mockers && travis-cargo --only nightly build)
# Tests use `mockers_derive` and thus are only runnable with nightly Rust.
- (cd mockers && travis-cargo --only nightly test)
# mockers_derive` use nightly Rust features.
- (cd mockers_derive && travis-cargo --only nightly build)
# Examples
- (cd examples/air_proc_macro && travis-cargo --only nightly test)
after_success:
# measure code coverage and upload to coveralls.io (the verify
# argument mitigates kcov crashes due to malformed debuginfo, at the
# cost of some speed <https://github.com/huonw/travis-cargo/issues/12>)
- (cd mockers && travis-cargo --only nightly coveralls --no-sudo --verify)
env:
global:
# override the default `--features unstable` used for the nightly branch (optional)
- TRAVIS_CARGO_NIGHTLY_FEATURE=""