maud/.travis.yml

46 lines
1.5 KiB
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
jobs:
include:
- name: "Main"
script:
- |
RUN_CLIPPY=true
rustup component add clippy --toolchain=nightly || RUN_CLIPPY=false
# As of right now, these need to be tested individually becuase `--workspace`
# (which is implied by `workspace = true`) cannot be used with `--features`
# This _may_ be resolved with the `--package` flag, however this requires
# opting in to a `-Z` unstable feature as of time of commit.
#
# Follow https://github.com/rust-lang/cargo/issues/5364 for updates.
- cargo test --manifest-path maud/Cargo.toml --features actix-web,iron,rocket
- cargo test --manifest-path maud_htmlescape/Cargo.toml
- cargo test --manifest-path maud_macros/Cargo.toml
- |
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
- name: "Unstable"
script:
- cargo test --all --all-features
- name: "Benchmarks"
script:
- (cd benchmarks && cargo test --benches --features unstable)
2019-03-27 21:54:35 +13:00
- name: "Documentation"
script:
- (cd docs && make -j$(nproc))
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
fqdn: maud.lambda.xyz
local_dir: docs/site
on:
branch: master