maud/.travis.yml
Chris Wong 5b027d08ae
Remove maud_extras crate ()
I don't think the examples in this crate are very useful, or demonstrate how to best use the library.
2019-03-25 20:36:23 +13:00

25 lines
762 B
YAML

language: rust
rust: nightly
sudo: false
before_script:
- |
RUN_CLIPPY=true
rustup component add clippy --toolchain=nightly || RUN_CLIPPY=false
script:
- (cd maud && cargo build --features="iron")
# The compiletest tests require a single version of the crate to be built
# or else there will be errors in picking the right version - so we test now
- cargo test --all
- (cd maud && cargo build --features="rocket")
- (cd maud && cargo build --features="actix-web")
- (cd benchmarks && cargo bench --no-run)
- |
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