maud/.travis.yml

26 lines
782 B
YAML
Raw Normal View History

2014-12-17 21:29:25 +13:00
language: rust
2015-05-26 22:35:10 +12:00
rust: nightly
sudo: false
2016-11-06 12:49:44 +13:00
before_script:
2018-12-09 11:14:50 +13:00
- |
RUN_CLIPPY=true
rustup component add clippy-preview --toolchain=nightly || RUN_CLIPPY=false
2016-11-06 12:49:44 +13:00
2014-12-17 21:29:25 +13:00
script:
- (cd maud && cargo build --features="iron")
2018-11-05 23:31:36 +00:00
# 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
2018-12-09 10:46:05 +13:00
- cargo test --all
- (cd maud && cargo build --features="rocket")
- (cd maud && cargo build --features="actix-web")
2018-07-21 22:25:52 +12:00
- (cd benchmarks && cargo bench --no-run)
2017-07-29 20:01:14 +12:00
- |
2018-12-09 11:14:50 +13:00
if $RUN_CLIPPY; then
CLIPPY_STATUS=0
for package in maud_htmlescape maud_macros maud maud_extras; do
(cd $package && cargo clippy -- -D warnings) || CLIPPY_STATUS=$?
done
(exit $CLIPPY_STATUS)
fi