-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
52 lines (42 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
50
51
52
language: rust
matrix:
include:
- rust: stable
- rust: beta
- rust: nightly
name: "Rust: nightly"
- rust: 1.32.0
- rust: stable
name: clippy
before_script:
- rustup component add clippy
script:
- cargo clippy
- rust: nightly
name: wasm32
before_script:
- rustup target add wasm32-unknown-unknown
script:
- cargo build --target=wasm32-unknown-unknown -p cqrs-core -p cqrs -p cqrs-todo-core
- rust: nightly
name: rustfmt
before_script:
- rustup component add rustfmt
script:
- cargo fmt -- --check
allow_failures:
- rust: nightly
name: "Rust: nightly"
install:
- rustc -vV
- cargo -vV
# Install kcov.
# - mkdir -p ~/.cargo/bin
# - sh src/install_kcov.sh
# - export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$HOME/Library/Python/2.7/bin:$PATH
# - export RUSTFLAGS="-C link-dead-code"
# - kcov --version
script:
- cargo build
- cargo test
# - if [ $TRAVIS_OS_NAME = linux ]; then cargo run -- kcov --verbose --no-clean-rebuild --lib --coveralls; fi