-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.sh
63 lines (48 loc) · 1.37 KB
/
setup.sh
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
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
[[ "$INSIDE_DOCKER" == "yes" ]] && sudo apt-get upgrade -yq
sudo DEBIAN_FRONTEND="noninteractive" apt-get install -yq apt-utils\
binutils \
cmake curl \
g++ git \
libboost-all-dev \
patch \
pkg-config \
tar time \
unzip \
zip
sudo apt-get autoremove -y --purge
OLD_PWD="`pwd`"
# install lcov and its dependecies if it is not for docker
if [ "$INSIDE_DOCKER" != "yes" ]; then
df -h
sudo apt-get install build-essential libz-dev
sudo cpan PerlIO::gzip
sudo cpan JSON
cd $HOME
git clone https://github.com/linux-test-project/lcov.git
cd lcov
sudo make install
df -h
fi
cd $HOME
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
./vcpkg install nlohmann-json docopt spdlog
# ./vcpkg install boost-serialization boost-flyweight boost-dynamic-bitset boost-graph
echo "Environment:
cmake: `cmake --version`
g++: `g++ --version`
gcc: `gcc --version`
gcov: `gcov --version`
vcpkg: `./vcpkg list`
"
if [ "$INSIDE_DOCKER" == "yes" ]; then
cd $HOME
git clone --recurse-submodules https://github.com/dns-groot/groot.git
cd groot
else
cd $OLD_PWD
fi