-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (68 loc) · 2.65 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
64
65
66
67
68
sudo: false
language: rust
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake
rust:
- stable
- beta
- nightly
matrix:
fast_finish: true
allow_failures:
- rust: nightly
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
cargo install clippy;
fi'
script:
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
cargo clippy -- -D warnings;
fi'
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo bench
before_deploy:
- |
cargo install cargo-travis &&
export PATH=$HOME/.cargo/bin:$PATH
- travis-cargo --only stable doc
- cargo package
deploy:
- provider: script
script: cargo coveralls
on:
condition: "$TRAVIS_RUST_VERSION = stable"
- provider: script
script: travis-cargo --only stable doc-upload
on:
branch: master
condition: "$TRAVIS_RUST_VERSION = stable"
- provider: script
script: cargo publish --token "$CRATESIO_TOKEN"
on:
tags: true
branch: master
condition: "$TRAVIS_RUST_VERSION = stable"
notifications:
email:
on_success: never
branches:
only:
- master
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
- secure: QEkz4tUACfW+AIq2nHZ0v+Qzhx+8AOJlw012nEHjhmLCRvwdiodBn4pN7Ia8raoWJXbDdfk6Gy/OLATOpID73l5CZ+gBZLdPtcbhz0n5Gwg2LwsPT6ixtD2LTs54TrpegwDvdroyy9BP5B9YaArE4uA7usmv1NmHATM01uFuzCF0MfK1F7g3TAh5jxfcVmSHOcLqTqK3YQmhSg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