-
Notifications
You must be signed in to change notification settings - Fork 218
/
.travis.yml
45 lines (45 loc) · 1.79 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
language: rust
branches:
only:
- master
matrix:
include:
- os: linux
rust: stable
before_script:
- rustup component add rustfmt
after_script:
- cargo fmt -- --check
- os: linux
rust: beta
- os: linux
rust: nightly
- os: osx
osx_image: xcode11
rust: stable
allow_failures:
- rust: nightly
install:
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
script:
- cargo check --all --tests
- cargo build --all
- cargo test --all --exclude uint --exclude fixed-hash
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
cd contract-address/ && cargo test --features=external_doc && cd ..;
fi
- cd ethbloom/ && cargo test --no-default-features --features="rustc-hex" && cargo check --benches && cd ..
- cd fixed-hash/ && cargo test --all-features && cargo test --no-default-features --features="byteorder,rustc-hex" && cd ..
- cd uint/ && cargo test --all-features && cargo test --no-default-features && cd ..
- cd keccak-hash/ && cargo test --no-default-features && cd ..
- cd plain_hasher/ && cargo test --no-default-features && cargo check --benches && cd ..
- cd parity-bytes/ && cargo test --no-default-features && cd ..
- cd parity-util-mem/ && cargo test --features=estimate-heapsize && cd ..
- cd parity-util-mem/ && cargo test --features=jemalloc-global && cd ..
- cd parity-util-mem/ && cargo test --features=mimalloc-global && cd ..
- cd parity-util-mem/ && cargo test --no-default-features --features=dlmalloc-global && cd ..
- cd rlp/ && cargo test --no-default-features && cargo check --benches && cd ..
- cd triehash/ && cargo check --benches && cd ..
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
cd kvdb-web/ && wasm-pack test --headless --chrome --firefox && cd ..;
fi