-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
51 lines (42 loc) · 1003 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: rust
rust:
- 1.20.0
- stable
- beta
- nightly
cache: cargo
os:
- linux
before_script:
- |
if [ $TRAVIS_RUST_VERSION = "nightly" ]; then
cargo install rustfmt-nightly --force
fi
matrix:
allow_failures:
- rust: nightly
script:
- |
if [ $TRAVIS_RUST_VERSION = "nightly" ]; then
cargo fmt --all -- --write-mode=diff
fi
- cargo build --all --all-features
- cargo test
- cargo doc --all --no-deps --all-features
after_success:
- cp ./doc_index.html ./target/doc/index.html
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: "${TRAVIS_BUILD_DIR}/target/doc"
on:
branch: master
rust: stable
notifications:
webhooks:
urls:
- "https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MGxldmFucyUzQXNhZmFyYWRlZy5uZXQvJTIxRkt4aGprSUNwakJWelZlQ2RGJTNBc2FmYXJhZGVnLm5ldA"
on_success: change
on_failure: always
on_start: never