forked from iqlusioninc/crates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (45 loc) · 1.2 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
53
54
55
56
language: rust
cache: cargo
branches:
only:
- master
rust:
- stable
os:
- linux
- osx
- windows
matrix:
fast_finish: true
allow_failures:
# We still rely on Appveyor for Windows testing since it's more
# reliable and performs better, but this lets us keep an eye on
# improvements to Travis Windows support
- os: windows
include:
- name: "Rust: stable (wasm32)"
rust: stable
script: cargo build --all --target wasm32-unknown-unknown
install:
- rustup component add rustfmt
- rustup component add clippy
- rustup target add wasm32-unknown-unknown
- command -v cargo-audit >/dev/null 2>&1 || cargo install cargo-audit
script:
# audit
- cargo audit
# lint
- cargo fmt --version
- cargo fmt --all -- --check
- cargo clippy --version
- cargo clippy --all
# ensure crates build without default features
- cargo build --all --no-default-features
# test
- cargo test --all --release
# crates with non-default features
- (cd gaunt && cargo test --release --features=logger)
- (cd subtle-encoding && cargo test --release --features=bech32-preview)
- (cd tai64 && cargo test --release --features=chrono)
# doc build
- cargo doc --no-deps