forked from jmespath/jmespath.rs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
47 lines (39 loc) · 1.09 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
language: rust
sudo: false
# run builds for all the trains (and more)
rust:
- stable
- beta
- nightly
matrix:
allow_failure:
- rust: nightly
# load travis-cargo
before_script:
- |
export TRAVIS_CARGO_NIGHTLY_FEATURE="" &&
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
# the main build
script:
- |
cd jmespath &&
travis-cargo build &&
travis-cargo test &&
travis-cargo --only nightly test -- --features specialized &&
travis-cargo bench
after_success:
# measure code coverage and upload to coveralls.io
- travis-cargo coveralls --no-sudo --verify
# necessary for pushing github docs
env:
global:
- secure: "sK8Vz18E5bqkpWc4yRRmZGWOf8Z5Lp8yKFEq8z9nXPY6XTCOmR5Pf2Zh82wFWwxBYILxfmoONaEDNWE0CHv0grbTX3Cv613wd9mgTi/MyV/O1wC2E52S8JE+JbiHcImqFjhr0ycafvLL+hSSY0/h8ZCkektzu/1Ut2ahPmT+KZI="
# 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