forked from akalsi87/servkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtravis_setup
More file actions
executable file
·30 lines (25 loc) · 858 Bytes
/
Copy pathtravis_setup
File metadata and controls
executable file
·30 lines (25 loc) · 858 Bytes
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
#!/bin/bash
set -e
echo "[TRAVIS_SETUP] Preparing build tools..."
# prepare linux env
if [ ${TRAVIS_OS_NAME} = "linux" ]; then
(sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test) &> /dev/null
(sudo apt-get update -qq) &> /dev/null
(sudo apt-get install -y lcov) &> /dev/null
if [ ${CXX} = "g++" ]; then
(sudo apt-get install -y gcc-4.8 g++-4.8) &> /dev/null
fi
(sudo apt-get install -y graphviz doxygen) &> /dev/null
fi
# prepare mac env
if [ ${TRAVIS_OS_NAME} = "osx" ]; then
(brew install lcov) &> /dev/null
(brew install graphviz) &> /dev/null
(brew install doxygen) &> /dev/null
fi
# use CMake 3.2
echo "[TRAVIS_SETUP] Installing CMake 3.2..."
cd /tmp
(curl https://cmake.org/files/v3.2/cmake-3.2.2.tar.gz | tar -xzf -) &> /dev/null
cd cmake-3.2.2
(./bootstrap && sudo make install -j8) &> /dev/null