forked from rust-bitcoin/rust-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (34 loc) · 1.14 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
sudo: required
language: rust
rust:
- 1.38.0
addons:
apt:
packages:
- libzmq3-dev
- build-essential
before_install:
- sudo apt-add-repository ppa:bitcoin/bitcoin -y
- sudo apt-get update -qq
- sudo apt-get install bitcoind -y
- CURRENT_DIR=$(pwd) &&
cd /tmp &&
curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip &&
unzip protoc-3.3.0-linux-x86_64.zip -d protoc3 &&
sudo mv protoc3/bin/* /usr/local/bin/ &&
sudo mv protoc3/include/* /usr/local/include/ &&
cd $CURRENT_DIR
- CURRENT_DIR=$(pwd) &&
cd /tmp &&
git clone https://github.com/romanz/electrs &&
cd electrs &&
git checkout a61e1b3b7a150c52188fc7c412233068c156c56b &&
cargo install --debug --path . &&
cd $CURRENT_DIR
- ls $HOME/.cargo/bin
install:
- RUST_BACKTRACE=1 cargo build --no-default-features --verbose
script:
- RUST_BACKTRACE=1 cargo test --package rust-wallet-grpc --all-features -- --test-threads=1
- RUST_BACKTRACE=1 cargo run --package wallet --bin environment &
- RUST_BACKTRACE=1 cargo test --package wallet --all-features -- --test-threads=1 --nocapture