forked from hyperledger-iroha/iroha-dco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
41 lines (41 loc) · 1.67 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
machine:
environment:
IROHA_HOME: $(pwd)/iroha
PATH: $PATH:/opt/cmake-3.5.2-Linux-x86_64/bin
JAVA_HOME: /usr/lib/jvm/java-7-openjdk-amd64
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
dependencies:
cache_directories:
- ~/iroha/core/vendor/
pre:
- sudo apt-get -y install build-essential libtcmalloc-minimal4 && sudo ln -s /usr/lib/libtcmalloc_minimal.so.4 /usr/lib/libtcmalloc_minimal.so
override:
- mkdir build; cd build; cmake ..; make
checkout:
post:
- sudo apt-get -y install libboost-all-dev
- sudo apt-get -y install xsltproc
- sudo apt-get install libhdf5-serial-dev libleveldb-dev libsnappy-dev liblmdb-dev
- 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
- cd $IROHA_HOME
- git submodule init
- git submodule update
- cd $IROHA_HOME/core/vendor/Aeron; ./gradlew; ./cppbuild/cppbuild
- cd $IROHA_HOME/core/vendor/leveldb; make
- cd $IROHA_HOME/core/vendor/ed25519; make
- cd $IROHA_HOME/core/vendor/KeccakCodePackage; make; make generic64/libkeccak.a
- cd $IROHA_HOME/core/vendor/yaml-cpp; mkdir build; cd build; cmake ..; make
- cd $IROHA_HOME/core/vendor/crow; mkdir build; cd build; cmake ..; make
- cd $IROHA_HOME/core/vendor/msgpack-c; cmake -DMSGPACK_CXX11=ON .; sudo make install
- cd $IROHA_HOME/core/infra/crypto/; make
test:
override:
- ./test.sh