-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
51 lines (46 loc) · 2.15 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
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
- beta
# check it compiles on the latest stable compiler
- stable
cache:
cargo: true
pip: true
# 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
- ./kcov/build/src/kcov --verify --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/lib-*
env:
global:
# override the default `--features unstable` used for the nightly branch (optional)
- TRAVIS_CARGO_NIGHTLY_FEATURE="unstable"
# encrypted github token for doc upload (see `GH_TOKEN` link above)
- secure: "H3514KcF/OkrECa5GkV07kpV92PFIvxzY3eWCg4KHzWEm9H8ku/pHyIs+xqVyCNuv2Mjc6t2OGn0PvkBltl7+RvD+dNwZIhnyV8H3TquwrxaV+TypM0Iq3Myp+Fdq9j/dQuwUwPKnFnc3zsysDo5IQxSLUgj+vaHss7jRSlT88leNK++SpeeR8iL2kMs1lrDAS6LZm0v+cA6wXZ+HqwrMJPavq5k7dgoLr+zZxjxGUxxLgeLr/UvnMF97Xv73XnyQzX+ZdSH6TCAgDozCAk1wPb6dHSzEp1TEHXNiRtn2/Wss6RKxRRX96qPXBBh6mMUZsygE7kkOyoeqwhDASlhDUd4V6rjy2I9ojwW82mhAOY+EdUFcv8kXM4OyJfZu/EXTm43HfqkKutL0fv+dBZ3kkMYsvjhF2tASxldBmqHh7NtP3pWIK7es1AeK0Go/eZ0QMLOnjpOofZBHefNz3TqiMLjogptJyn3nKxRLxpCXKMmr/ZAoMM41lbMAvbg3keldHKupar21t+9qTcJ/iiTT6N7gnJhpjWcShS7mJWY70lKQaEls8C/BLPC4/o9bBmCE1eeT6RijZ/Ei/MC2hyp4PTX+BFfkUA+Bhw6EZG5y/3mmdVBDGj5IEHMGpu5z9f74DReujsQD9IT1J4TbJdq9W7BuuXULsujkoJ68GuK3EQ="