-
Notifications
You must be signed in to change notification settings - Fork 69
/
_travis.yml
52 lines (48 loc) · 1.13 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
50
51
52
language: rust
cache: cargo
rust:
- stable
- beta
- nightly
env:
matrix:
- JOB="test"
matrix:
fast_finish: true
include:
- rust: nightly
env: JOB="wasm"
# Build and deploy the mdbook guide.
- rust: stable
env: JOB="guide"
before_script:
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.2" mdbook)
- cargo install-update -a
script:
- cd guide && mdbook build
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: guide/book
keep-history: false
on:
branch: master
- rust: stable
env: JOB="format"
before_script:
- rustup component add rustfmt --toolchain stable
script:
- cargo fmt -- --check
- rust: stable
env: JOB="lint"
before_script:
- rustup component add clippy --toolchain stable
script:
- cargo clippy -- -D warnings
allow_failures:
- rust: stable
env: JOB="lint"
script:
- ./ci/script.sh