maud/.travis.yml
Coleman McFarland 8ce98f689f Build features separately.
Compiling rocket and actix-web together presents problems, since ring - a
native dependency - cannot have more than one version linked.
2018-06-15 20:23:21 +12:00

21 lines
545 B
YAML

language: rust
rust: nightly
sudo: false
before_script:
- cargo install clippy || true
- export PATH=$HOME/.cargo/bin:$PATH
script:
- cargo build --features="iron"
- cargo build --features="rocket"
- cargo build --features="actix-web"
- cargo test --all
- |
if command -v cargo-clippy > /dev/null; then
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)
fi