maud/.travis.yml
Chris Wong 3e0b2d8df1 Fix documentation deployment
The `cleanup` flag is only available on [dpl v2] which is opt-in. Moreover, dpl v2 defaults to `cleanup: false` anyway so there is no need to specify it.

[dpl v2]: https://docs.travis-ci.com/user/deployment-v2

cc 
2020-10-06 12:39:52 +11:00

44 lines
1.3 KiB
YAML

language: rust
rust: nightly
jobs:
include:
- name: "Main"
script:
- |
RUN_CLIPPY=true
rustup component add clippy --toolchain=nightly || RUN_CLIPPY=false
- cargo test --workspace --all-features
- |
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: "Benchmarks"
script:
- (cd benchmarks && cargo test --benches --locked)
- name: "Documentation"
script:
- (cd docs && make -j$(nproc))
deploy:
provider: pages
edge: true
token: $GITHUB_TOKEN
fqdn: maud.lambda.xyz
local_dir: docs/site
keep_history: false
on:
branch: master
- name: "Format"
before_script:
- rustup component add rustfmt
script:
- cargo fmt -- --check
- (cd benchmarks && cargo fmt -- --check)
- (cd docs && cargo fmt -- --check)
# trybuild harnesses are technically not part of the Cargo project, so
# need to be checked separately
- rustfmt --check maud/tests/warnings/*.rs