-
Notifications
You must be signed in to change notification settings - Fork 155
/
.travis.yml
88 lines (85 loc) · 2.36 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
dist: trusty
sudo: require
language: cpp
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- doxygen
- doxygen-doc
- doxygen-latex
- doxygen-gui
- graphviz
before_install:
- gcc -v && g++ -v
- doxygen docs/Doxyfile
deploy_docs:
provider: pages
skip_cleanup: pages
github-token: $GH_REPO_TOKEN # Set in the settings page of your repository, as a secure variable
local_dir: docs/html
on:
branch: master
script:
- mkdir BuildNebula
- cd BuildNebula
- export WORK_PATH=`pwd`
- mkdir NebulaDepend NebulaDependBuild
- cd NebulaDependBuild
- wget https://github.com/google/protobuf/archive/v3.6.0.zip
- unzip v3.6.0.zip
- cd protobuf-3.6.0
- chmod u+x autogen.sh
- ./autogen.sh
- ./configure --prefix=${WORK_PATH}/NebulaDepend
- make
- make install
- cd ..
- wget https://github.com/kindy/libev/archive/master.zip
- mv master.zip libev.zip
- unzip libev.zip
- mv libev-master libev
- cd libev/src
- chmod u+x autogen.sh
- ./autogen.sh
- ./configure --prefix=${WORK_PATH}/NebulaDepend
- make
- make install
- cd ../../
- wget https://github.com/redis/hiredis/archive/v0.13.0.zip
- mv v0.13.0.zip hiredis_v0.13.0.zip
- unzip hiredis_v0.13.0.zip
- mv hiredis-0.13.0 hiredis
- cd hiredis
- make
- mkdir ../../NebulaDepend/include/hiredis
- cp -r adapters *.h ../../NebulaDepend/include/hiredis/
- cp libhiredis.so ../../NebulaDepend/lib/
- cd ..
- wget https://github.com/weidai11/cryptopp/archive/CRYPTOPP_6_0_0.tar.gz
- tar -zxvf CRYPTOPP_6_0_0.tar.gz
- cd cryptopp-CRYPTOPP_6_0_0
- make libcryptopp.so
- mkdir ../../NebulaDepend/include/cryptopp
- cp *.h ../../NebulaDepend/include/cryptopp/
- cp libcryptopp.so ../../NebulaDepend/lib/
- cd ..
- wget https://github.com/openssl/openssl/archive/OpenSSL_1_1_0.zip
- unzip OpenSSL_1_1_0.zip
- rm OpenSSL_1_1_0.zip
- cd openssl-OpenSSL_1_1_0
- ./config --prefix=${WORK_PATH}/NebulaDepend
- make
- make install
- cd ..
# now build nebula
- cd ..
- git clone https://github.com/Bwar/Nebula.git Nebula
- mkdir Nebula/include
- mkdir Nebula/lib
- cd Nebula/proto
- ${WORK_PATH}/NebulaDepend/bin/protoc *.proto --cpp_out=../src/pb
- cd ../src
- make