forked from hyperledger-archives/ursa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (35 loc) · 1.01 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
language: rust
cache: cargo
branches:
only:
- master
rust:
- stable
os:
- linux
- osx
addons:
apt:
packages:
- libssl1.0.0
- libssl-dev
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew link --force openssl ; fi
env:
- SODIUM_BUILD_STATIC=1
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:
- cargo fmt --all -- --check
- cargo clippy --all -- -W clippy::not_unsafe_ptr_arg_deref -A clippy::many_single_char_names
- cargo check && cargo audit
- cargo build
- cargo build --no-default-features --features=portable
- cargo test
- cargo run --manifest-path ./libursa/Cargo.toml --bin test_secp256k1 --features="benchmarksecp256k1"
- cargo run --manifest-path ./libursa/Cargo.toml --bin test_ed25519 --features="benchmarked25519"
- cargo doc --no-deps