forked from serde-rs/json
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
51 lines (44 loc) · 2.08 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
language: rust
sudo: false
# run builds for all the trains (and more)
rust:
- stable
- beta
- nightly
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:
# TEMPORARY UNTIL SERDE 0.7 IS RELEASED
- |
mkdir .travis-deps
mkdir .cargo
echo 'paths = ["./.travis-deps/serde"]' > .cargo/config
git clone https://github.com/serde-rs/serde .travis-deps/serde
pushd .travis-deps/serde
git reset --hard origin/master
popd
- |
(cd json && travis-cargo build) &&
(cd json && travis-cargo test) &&
(cd json_tests && travis-cargo test -- --features with-syntex --no-default-features) &&
(cd json_tests && travis-cargo --only nightly test -- features nightly-testing) &&
(cd json_tests && travis-cargo --only nightly bench -- features nightly-testing) &&
(cd json_tests && travis-cargo --only nightly bench -- --features "nightly-testing with-syntex" --no-default-features) &&
(cd json && travis-cargo --only stable doc)
after_success:
- (cd json && travis-cargo --only stable doc-upload)
- (cd json_tests && travis-cargo coveralls --no-sudo)
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: gtlf44Ls2rxiroA1yWrWBPp/W8osiCglD4qvR9TOc3/sTwoF2FcWS02OSnTj+Vlq1xGMRY6xbgnR3iuhBEmDD482+xJb/2mUjDU/WnZXeNRvL98C1lW8GWpyqTnicWPxp7Ul2zfwICziU2KeegTBV6/B3QZZGzD2Cn6oE0TcerrlCgsh3sadwXETUhk4/M//03yfGdzLscSxwUIjaCKB/lLqBrQvXd0OQZSlesXgPtsFhzxgljQWRLD8baLmQ88OeoM0lujMopvr6119OT0nHNXpnInpKgmKW6fzrYxyCC96j8xM/qFgvwniNp4rFO7BKyJAIAZhTKD17Lpl/6k47LLJ2Xnw2gpBTu8+3agnmbXV1SmOO/lwcbCSjvk/krvQXWW7mz+2n5XafAmKZfvs45GApSlKdCBlFxZIyegPCPggrPt+ke7KVYJIMVGXohaFlLUowlJr+b5ykSG32IzsASdxtQk4CLN92lVfH2Sdh1vzN3Op2ROrfvBr1XS/dhoRmyZVA6NNa+ksS+ILNQi3MC1X2QarbZOtKueziC2gUE9ZVJInc1JLR81HUoX+OS6abRt3z79IVAqCoUUQfMfQF8lLRkNuxGQT4vlUi/b83zDEbl3iHTu6QHNQYeAw1YQvYNX6la1CbYj1gQ7pOTaNust0vdmoQisLTyldM3Nc7PM=