This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
63 lines (56 loc) · 1.77 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
language: rust
services:
- redis-server
cache:
directories:
- ~/bitcoin/bitcoin-0.19.1/bin
before_install:
- echo $TRAVIS_OS_NAME
- set -e
- . ./env && ./deps/install_packages.sh
- sudo dpkg -i ./deps/emp-sh2pc/libcrypto++9v5*.deb
- sudo dpkg -i ./deps/emp-sh2pc/libcrypto++-dev*.deb
- . ./env && make deps
- redis-server --daemonize yes
- redis-cli info
- echo -e "$PWD/deps/root/lib\n$PWD/target/release" | sudo tee /etc/ld.so.conf.d/libzkchannels.conf && sudo ldconfig
- set +e
rust:
- stable
matrix:
include:
- stage: Rust tests
language: rust
rust: stable
script:
- . ./env
- env
- cargo build --release
- cargo test --release --lib mpcwrapper -- --nocapture
- cargo test --release --lib channels_mpc -- --nocapture
#- ./test_ignored.sh
- stage: Go tests
language: go
go: "1.13"
script:
- curl -sSf https://build.travis-ci.com/files/rustup-init.sh | sh -s -- --default-toolchain=stable --profile=minimal -y
- export PATH=${TRAVIS_HOME}/.cargo/bin:$PATH
- cargo --version
- . ./env
- env
- cargo build --release
- make mpctest
- ./test_gowrapper.sh
#- stage: Test scenarios with bitcoind
#language: go
#go: "1.13"
#script:
#- bash ./tx/install_bitcoind.sh
#- curl -sSf https://build.travis-ci.com/files/rustup-init.sh | sh -s -- --default-toolchain=stable --profile=minimal -y
#- export PATH=${TRAVIS_HOME}/.cargo/bin:$PATH
#- cargo --version
#- pip3 --version
#- . ./env
#- cargo build --release
#- pip3 install base58 ecdsa
#- cd tx/ && python3 test_scenarios_bitcoind.py