Skip to content

Commit 9dce160

Browse files
committed
Trim down the Travis build
1 parent 5773980 commit 9dce160

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

.travis.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ rust:
77
- beta
88
- nightly
99

10+
matrix:
11+
include:
12+
- rust: nightly
13+
env: BENCH=1
14+
1015
addons:
1116
apt:
1217
packages:
@@ -20,27 +25,20 @@ before_script:
2025
export PATH=$HOME/.local/bin:$PATH
2126
2227
script:
23-
# TEMPORARY UNTIL SERDE 0.7 IS RELEASED
24-
- |
25-
mkdir .travis-deps
26-
mkdir .cargo
27-
echo 'paths = ["./.travis-deps/serde"]' > .cargo/config
28-
git clone https://github.com/serde-rs/serde .travis-deps/serde
29-
pushd .travis-deps/serde
30-
git reset --hard origin/master
31-
popd
3228
- |
33-
(cd json && travis-cargo build) &&
34-
(cd json && travis-cargo test) &&
35-
(cd json_tests && travis-cargo test -- --features with-syntex --no-default-features) &&
36-
(cd json_tests && travis-cargo --only nightly test -- features nightly-testing) &&
37-
(cd json_tests && travis-cargo --only nightly bench -- features nightly-testing) &&
38-
(cd json_tests && travis-cargo --only nightly bench -- --features "nightly-testing with-syntex" --no-default-features) &&
39-
(cd json && travis-cargo --only stable doc)
29+
if [ -z $BENCH ]; then
30+
(cd json && travis-cargo build) &&
31+
(cd json && travis-cargo --only nightly test) &&
32+
(cd json_tests && travis-cargo --skip nightly test -- --features with-syntex --no-default-features) &&
33+
(cd json_tests && travis-cargo --only nightly test -- --features nightly-testing) &&
34+
(cd json && travis-cargo --only stable doc)
35+
else
36+
(cd json_tests && travis-cargo bench)
37+
fi
4038
4139
after_success:
4240
- (cd json && travis-cargo --only stable doc-upload)
43-
- (cd json_tests && travis-cargo coveralls --no-sudo)
41+
- (cd json_tests && travis-cargo --only stable coveralls --no-sudo)
4442

4543
env:
4644
global:

0 commit comments

Comments
 (0)