-
Notifications
You must be signed in to change notification settings - Fork 38
/
.travis.yml
45 lines (42 loc) · 1.75 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
language: go
matrix:
include:
- os: linux
dist: bionic
# - os: osx # disable osx https://github.com/Homebrew/homebrew-core/pull/58905
# osx_image: xcode11.3
go:
- "1.12.x"
git:
depth: 1
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libomp-dev libcrypto++-dev libboost-all-dev libgmp-dev; fi
# - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install libcryptopp boost gmp openssl; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install libcryptopp; fi
- cd $HOME && mkdir zkPoD && cd zkPoD
- mv $GOPATH/src/github.com/sec-bit/zkPoD-node .
- git clone https://github.com/sec-bit/zkPoD-lib.git
- cd zkPoD-lib
- git submodule init && git submodule update
- cd depends/libsnark
- git submodule init && git submodule update
- mkdir build && cd build
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cmake -DCMAKE_INSTALL_PREFIX=../../install -DMULTICORE=ON -DWITH_PROCPS=OFF -DWITH_SUPERCOP=OFF -DCURVE=MCL_BN128 ..; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then CPPFLAGS=-I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/openssl/lib PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig cmake -DCMAKE_INSTALL_PREFIX=../../install -DMULTICORE=OFF -DWITH_PROCPS=OFF -DWITH_SUPERCOP=OFF -DCURVE=MCL_BN128 ..; fi
- make -j 2 && make install
- cd ../../..
- make -j 2
- cd pod_go
- make test
- cd ../../zkPoD-node
- make -j 2
- mkdir -p zkPodParam/zksnark_key
- cd zkPodParam/zksnark_key
- wget https://raw.githubusercontent.com/sec-bit/zkPoD-params/master/zksnark_key/atomic_swap_vc.pk
- wget https://raw.githubusercontent.com/sec-bit/zkPoD-params/master/zksnark_key/atomic_swap_vc.vk
script:
- cd $HOME/zkPoD/zkPoD-node
- make run &
- sleep 30
env:
- GO111MODULE=on