maud/.travis.yml
Chris Wong c5e8eb4d5f Travis: split build into jobs
- Change benchmarks build to use `cargo test --benches`. This runs the
  benchmarks and compiles faster than `cargo bench`.

Closes 
2019-03-27 21:00:00 +13:00

23 lines
617 B
YAML

language: rust
rust: nightly
sudo: false
jobs:
include:
- name: "Main"
script:
- |
RUN_CLIPPY=true
rustup component add clippy --toolchain=nightly || RUN_CLIPPY=false
- cargo test --all --all-features
- |
if $RUN_CLIPPY; then
CLIPPY_STATUS=0
for package in maud_htmlescape maud_macros maud; do
(cd $package && cargo clippy -- -D warnings) || CLIPPY_STATUS=$?
done
(exit $CLIPPY_STATUS)
fi
- name: "Benchmarks"
script:
- (cd benchmarks && cargo test --benches)