forked from rust-bitcoin/bitcoin_hashes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (34 loc) · 906 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
language: rust
cache:
cargo: true
directories:
- wasm
rust:
- stable
- beta
- nightly
- 1.29.0
jobs:
include:
- rust: stable
env: FUZZ=true
- rust: stable
env: WASM=true
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y binutils-dev libunwind8-dev nodejs
script:
- |
if [ "$FUZZ" = "true" ]; then
cd fuzz && cargo test --verbose && ./travis-fuzz.sh;
elif [ "$WASM" = "true" ]; then
CARGO_TARGET_DIR=wasm cargo install --verbose --force wasm-pack &&
sed -i 's/\[lib\]/[lib]\ncrate-type = ["cdylib", "rlib"]/' Cargo.toml &&
wasm-pack build && wasm-pack test --node
else
cargo build --verbose
cargo test --verbose
cargo test --verbose --features "serde"
cargo build --verbose --features "fuzztarget"
cargo build --verbose --no-default-features
fi