File tree 1 file changed +15
-17
lines changed 1 file changed +15
-17
lines changed Original file line number Diff line number Diff line change 7
7
- beta
8
8
- nightly
9
9
10
+ matrix :
11
+ include :
12
+ - rust : nightly
13
+ env : BENCH=1
14
+
10
15
addons :
11
16
apt :
12
17
packages :
@@ -20,27 +25,20 @@ before_script:
20
25
export PATH=$HOME/.local/bin:$PATH
21
26
22
27
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
32
28
- |
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
40
38
41
39
after_success :
42
40
- (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)
44
42
45
43
env :
46
44
global :
You can’t perform that action at this time.
0 commit comments