Compiling rocket and actix-web together presents problems, since ring - a native dependency - cannot have more than one version linked.
21 lines
545 B
YAML
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
|