forked from lambda-fairy/maud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (33 loc) · 895 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: rust
rust: nightly
sudo: false
jobs:
include:
- name: "Main"
script:
- |
RUN_CLIPPY=true
rustup component add clippy --toolchain=nightly || RUN_CLIPPY=false
- cargo test --all --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)
- 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