Travis: split build into jobs
- Change benchmarks build to use `cargo test --benches`. This runs the benchmarks and compiles faster than `cargo bench`. Closes #169
This commit is contained in:
parent
dae5074c8d
commit
c5e8eb4d5f
1 changed files with 19 additions and 16 deletions
11
.travis.yml
11
.travis.yml
|
@ -2,14 +2,14 @@ language: rust
|
||||||
rust: nightly
|
rust: nightly
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
before_script:
|
jobs:
|
||||||
|
include:
|
||||||
|
- name: "Main"
|
||||||
|
script:
|
||||||
- |
|
- |
|
||||||
RUN_CLIPPY=true
|
RUN_CLIPPY=true
|
||||||
rustup component add clippy --toolchain=nightly || RUN_CLIPPY=false
|
rustup component add clippy --toolchain=nightly || RUN_CLIPPY=false
|
||||||
|
|
||||||
script:
|
|
||||||
- cargo test --all --all-features
|
- cargo test --all --all-features
|
||||||
- (cd benchmarks && cargo bench --no-run)
|
|
||||||
- |
|
- |
|
||||||
if $RUN_CLIPPY; then
|
if $RUN_CLIPPY; then
|
||||||
CLIPPY_STATUS=0
|
CLIPPY_STATUS=0
|
||||||
|
@ -18,3 +18,6 @@ script:
|
||||||
done
|
done
|
||||||
(exit $CLIPPY_STATUS)
|
(exit $CLIPPY_STATUS)
|
||||||
fi
|
fi
|
||||||
|
- name: "Benchmarks"
|
||||||
|
script:
|
||||||
|
- (cd benchmarks && cargo test --benches)
|
||||||
|
|
Loading…
Add table
Reference in a new issue