forked from elwerene/changes-stream-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (39 loc) · 1.92 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
sudo: false
language: rust
# 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
# run builds for all the trains (and more)
rust:
- nightly
# load travis-cargo
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
# the main build
script:
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo bench &&
travis-cargo --only stable doc
after_success:
# upload the documentation from the build with stable (automatically only actually
# runs on the master branch, not individual PRs)
- travis-cargo --only stable doc-upload
# 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>)
- travis-cargo coveralls --no-sudo --verify
env:
global:
# override the default `--features unstable` used for the nightly branch (optional)
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
# encrypted github token for doc upload (see `GH_TOKEN` link above)
- secure: X2d0Gjk7HJGioVlN7FslYFYCxtFgSjeQRHAJK/SmsEvKDNXFXjdipv5H318Jf1uFpiqrloq+9Pf0Ost+ucsi3MEu8XlgTZ1XY37Pp0nroaunKp8WYmorXWMF9vfljZGgQV/Eg6bzr0nUX5ZyCywSFS1N4exgcn1dDTjT8USmv0CAbrQP7flKs9Tc/KLFojifkgzgZbBsJn939AS7MNkS8syeYh/nNWZGy89+oCOqG9hiIQf2eF8zYc/WU1cG6QQheFncxQOmi50Unq8+P5qJ15e7h1AeVXh1VfKVWWOxVUKtXBbFS0tU4qOPTcen6V35FO853M/4MMTWI6I9B+s5r5s4expUN6w8Iz2ctADVe6c7MFLyGukhmfWmW+GnwlpC1DhCTQyARNWfDESB8jBWBDp+7itJ7H649appRsU15hbbngJQzfoEfdyUwfwYDp2dwklYzqMebY6SiundS/s1bZ4n1MjV91tucXipvYZSYAN97oyzQGhElunbgBui2WDTpVwRspJpo/32uv7Lhzct4uQVkh7pD/ZJEX+ERsqcjGZkFGAw8W1TNtxyJdKqij1zYobP6eLdTT4o5iAH82lfY8x2iFKm2W1cuEz3Kv3+hR31GGps0TYpvBOJ5SEnfL2pqSg5tpPQEaL8YpLDUvqgDIoo2lWkWa+N096aEkGumgw=