forked from hyperledger-iroha/iroha-dco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
56 lines (54 loc) · 2.43 KB
/
circle.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
machine:
environment:
IROHA_HOME: $(pwd)/iroha
PATH: $PATH:/opt/cmake-3.5.2-Linux-x86_64/bin
JAVA_HOME: /usr/lib/jvm/java-1.8.0-openjdk-amd64/
java:
version: 'oraclejdk8'
pre:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update
- sudo apt-get install g++-5
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 20
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 20
- g++ -v
- sudo apt-get -y install build-essential libtcmalloc-minimal4 && sudo ln -s /usr/lib/libtcmalloc_minimal.so.4 /usr/lib/libtcmalloc_minimal.so
- sudo apt-get -y install xsltproc
- sudo apt-get -y install libhdf5-serial-dev libleveldb-dev libsnappy-dev liblmdb-dev
- sudo apt-get -y install autoconf automake libtool unzip
- cd /tmp
- sudo apt-get -y purge cmake
- curl -sSL https://cmake.org/files/v3.5/cmake-3.5.2-Linux-x86_64.tar.gz | sudo tar -xzC /opt
dependencies:
cache_directories:
- ~/iroha/core/vendor/
pre:
- cd /tmp; git clone -b v3.0.0 https://github.com/google/protobuf.git
- cd /tmp/protobuf;(git cherry-pick 1760feb621a913189b90fe8595fffb74bce84598; echo Force continue)
- cd /tmp/protobuf; ./autogen.sh; ./configure --prefix=/usr; make -j 16; sudo make install
- protoc --version
- cd /tmp; git clone -b $(curl -L http://grpc.io/release) https://github.com/grpc/grpc
- cd /tmp/grpc; git submodule update --init; make; sudo make install
- which grpc_cpp_plugin
override:
- mkdir build; cd build; cmake ..; make
checkout:
post:
- cd $IROHA_HOME
- rm -rf core/vendor/KeccakCodePackage
- rm -rf core/vendor/leveldb
- rm -rf core/vendor/ed25519
- rm -rf core/vendor/json
- rm -rf core/vendor/Cappuccino
- git clone https://github.com/gvanas/KeccakCodePackage.git core/vendor/KeccakCodePackage
- git clone https://github.com/google/leveldb.git core/vendor/leveldb
- git clone https://github.com/MizukiSonoko/ed25519.git core/vendor/ed25519
- git clone https://github.com/nlohmann/json.git core/vendor/json
- git clone --recursive https://github.com/MizukiSonoko/Cappuccino.git core/vendor/Cappuccino
- cd $IROHA_HOME/core/vendor/leveldb; make -j 14
- cd $IROHA_HOME/core/vendor/ed25519; make -j 14
- cd $IROHA_HOME/core/vendor/KeccakCodePackage; make; make generic64/libkeccak.a
- cd $IROHA_HOME/core/infra/crypto/; make
test:
override:
- ./test.sh