forked from cloudflare/quiche
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (45 loc) 路 1.09 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: rust
dist: xenial
addons:
apt:
packages:
- golang-go
- libev-dev
- uthash-dev
matrix:
include:
- rust: stable
install:
- rustup component add clippy
script:
- RUSTFLAGS="-D warnings" cargo build --verbose
- RUSTFLAGS="-D warnings" cargo test --verbose
- cargo clippy --examples -- -D warnings
- cargo doc --no-deps
- make -C examples
- rust: beta
script:
- RUSTFLAGS="-D warnings" cargo build --verbose
- RUSTFLAGS="-D warnings" cargo test --verbose
- cargo doc --no-deps
- make -C examples
- rust: nightly
install:
- rustup component add rustfmt
script:
- RUSTFLAGS="-D warnings" cargo build --verbose
- RUSTFLAGS="-D warnings" cargo test --verbose
- cargo fmt -- --check
- cargo doc --no-deps
- make -C examples
allow_failures:
- rust: nightly
deploy:
provider: pages
fqdn: docs.quic.tech
local-dir: target/doc
skip-cleanup: true
github-token: $GITHUB_TOKEN
on:
branch: master
condition: $TRAVIS_RUST_VERSION = stable