forked from serde-rs/json
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (41 loc) · 1.12 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
language: rust
sudo: false
# run builds for all the trains (and more)
rust:
- stable
- nightly
- 1.8.0
- 1.9.0
- beta
matrix:
include:
- rust: nightly
env: BENCH=1
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- |
if [ -z $BENCH ]; then
(cd json && travis-cargo build) &&
(cd json && travis-cargo --skip 1.8.0 build -- --features preserve_order) &&
(cd json && travis-cargo --only nightly test) &&
(cd json_tests && travis-cargo --skip nightly test -- --features with-syntex --no-default-features) &&
(cd json_tests && travis-cargo --only nightly test -- --features unstable-testing) &&
(cd json && travis-cargo --only stable doc)
else
(cd json_tests && travis-cargo bench)
fi
after_success:
- (cd json_tests && travis-cargo --only stable coveralls --no-sudo)
env:
global:
# override the default `--features unstable` used for the nightly branch (optional)
- TRAVIS_CARGO_NIGHTLY_FEATURE=""