2014-12-17 21:29:25 +13:00
|
|
|
language: rust
|
2015-05-26 22:35:10 +12:00
|
|
|
rust: nightly
|
2015-04-15 18:18:12 +12:00
|
|
|
sudo: false
|
2016-11-06 12:49:44 +13:00
|
|
|
|
|
|
|
before_script:
|
2018-07-18 19:52:58 +12:00
|
|
|
- rustup component add clippy-preview --toolchain=nightly
|
2016-11-06 12:49:44 +13:00
|
|
|
|
2014-12-17 21:29:25 +13:00
|
|
|
script:
|
2018-08-26 20:46:29 +12:00
|
|
|
- (cd maud && cargo build --features="iron")
|
|
|
|
- (cd maud && cargo build --features="rocket")
|
|
|
|
- (cd maud && cargo build --features="actix-web")
|
2018-06-11 17:40:10 -07:00
|
|
|
- cargo test --all
|
2018-07-21 22:25:52 +12:00
|
|
|
- (cd benchmarks && cargo bench --no-run)
|
2017-07-29 20:01:14 +12:00
|
|
|
- |
|
2018-07-18 19:52:58 +12:00
|
|
|
CLIPPY_STATUS=0
|
|
|
|
for package in maud_htmlescape maud_macros maud maud_lints maud_extras; do
|
|
|
|
(cd $package && cargo clippy -- -D warnings) || CLIPPY_STATUS=$?
|
|
|
|
done
|
|
|
|
(exit $CLIPPY_STATUS)
|