-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
35 lines (32 loc) · 1.3 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
language: go
matrix:
include:
- os: linux
dist: bionic
- os: osx
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-lib .
- 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 -DUSE_ASM=OFF ..; fi
- make -j 2 && make install
script:
- cd $HOME/zkPoD/zkPoD-lib/
- make -j 2
- cd pod_go
- make test
env:
- GO111MODULE=on