2014-08-27 17:19:10 +00:00
|
|
|
language: rust
|
2020-04-16 17:07:14 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- wasm
|
2018-12-07 19:53:44 +00:00
|
|
|
|
2018-03-21 21:31:39 +00:00
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
- nightly
|
2019-01-30 23:44:26 +00:00
|
|
|
- 1.22.0
|
2020-04-16 17:07:14 +00:00
|
|
|
distro: bionic
|
2018-12-07 19:53:44 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- windows
|
2015-07-28 17:38:01 +00:00
|
|
|
|
2019-08-12 18:49:08 +00:00
|
|
|
addons:
|
|
|
|
chrome: stable
|
2020-04-16 17:07:14 +00:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- clang-9
|
|
|
|
- nodejs
|
2019-08-12 18:49:08 +00:00
|
|
|
|
2018-12-07 21:37:21 +00:00
|
|
|
matrix:
|
|
|
|
exclude:
|
2019-01-30 23:44:26 +00:00
|
|
|
- rust: 1.22.0
|
2018-12-07 21:37:21 +00:00
|
|
|
os: windows
|
|
|
|
|
2015-07-28 17:38:01 +00:00
|
|
|
script:
|
2020-03-14 19:57:04 +00:00
|
|
|
- if [ "$TRAVIS_RUST_VERSION" == "1.22.0" ]; then
|
|
|
|
cargo generate-lockfile --verbose && cargo update -p cc --precise "1.0.41" --verbose;
|
|
|
|
fi
|
2019-02-18 12:42:06 +00:00
|
|
|
- cargo build --verbose --no-default-features
|
2020-04-07 20:43:53 +00:00
|
|
|
- cargo build --verbose --no-default-features --features="bitcoin_hashes"
|
2019-02-18 12:42:06 +00:00
|
|
|
- cargo build --verbose --no-default-features --features="serde"
|
2019-08-12 18:49:08 +00:00
|
|
|
- cargo build --verbose --no-default-features --features="lowmemory"
|
2019-02-18 12:42:06 +00:00
|
|
|
- cargo build --verbose --no-default-features --features="rand"
|
2019-06-11 20:32:54 +00:00
|
|
|
- cargo build --verbose --no-default-features --features="rand serde recovery endomorphism"
|
2019-05-21 22:16:11 +00:00
|
|
|
- cargo build --verbose --no-default-features --features="fuzztarget recovery"
|
2019-08-12 18:49:08 +00:00
|
|
|
- cargo build --verbose --features=rand
|
2020-01-09 12:47:31 +00:00
|
|
|
- cargo test --no-run --features=fuzztarget
|
2020-04-07 20:43:53 +00:00
|
|
|
- cargo test --verbose --features="bitcoin_hashes"
|
2019-08-12 18:49:08 +00:00
|
|
|
- cargo test --verbose --features=rand
|
2019-08-22 00:16:11 +00:00
|
|
|
- cargo test --verbose --features="rand rand-std"
|
2019-08-12 18:49:08 +00:00
|
|
|
- cargo test --verbose --features="rand serde"
|
|
|
|
- cargo test --verbose --features="rand serde recovery endomorphism"
|
2018-03-21 21:31:39 +00:00
|
|
|
- cargo build --verbose
|
|
|
|
- cargo test --verbose
|
2019-08-12 18:49:08 +00:00
|
|
|
- cargo build --verbose --release
|
|
|
|
- cargo test --verbose --release
|
2019-10-28 20:09:59 +00:00
|
|
|
- cargo run --example sign_verify
|
2019-10-28 20:10:31 +00:00
|
|
|
- cargo run --example sign_verify_recovery --features=recovery
|
2019-10-28 20:09:18 +00:00
|
|
|
- cargo run --example generate_keys --features=rand
|
2019-08-12 18:49:08 +00:00
|
|
|
- if [ ${TRAVIS_RUST_VERSION} == "stable" ]; then cargo doc --verbose --features="rand,serde,recovery,endomorphism"; fi
|
|
|
|
- if [ ${TRAVIS_RUST_VERSION} == "nightly" ]; then cargo test --verbose --benches --features=unstable; fi
|
2020-03-11 10:22:21 +00:00
|
|
|
- if [ ${TRAVIS_RUST_VERSION} == "nightly" -a "$TRAVIS_OS_NAME" = "linux" ]; then
|
2019-10-24 17:24:47 +00:00
|
|
|
cd no_std_test &&
|
|
|
|
cargo run --release | grep -q "Verified Successfully";
|
|
|
|
fi
|
2020-04-16 17:07:14 +00:00
|
|
|
- if [ ${TRAVIS_RUST_VERSION} == "stable" -a "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
|
|
clang --version &&
|
|
|
|
CARGO_TARGET_DIR=wasm cargo install --verbose --force wasm-pack &&
|
|
|
|
sed -i 's/\[lib\]/[lib]\ncrate-type = ["cdylib", "rlib"]/' Cargo.toml &&
|
|
|
|
CC=clang-9 wasm-pack build &&
|
|
|
|
CC=clang-9 wasm-pack test --node;
|
|
|
|
fi
|