blob: 31ee137f8882cac70881aa83615867a484a284e3 [file] [log] [blame]
Junxiao Shi439d9722015-03-20 15:08:44 -07001#!/usr/bin/env bash
2set -e
3
4JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5source "$JDIR"/util.sh
6
Davide Pesavento956ac312016-09-20 19:11:30 +02007set -x
8
Junxiao Shi439d9722015-03-20 15:08:44 -07009if has OSX $NODE_LABELS; then
Davide Pesavento07238e82017-08-26 13:21:57 -040010 FORMULAE=(boost openssl pkg-config)
Junxiao Shi439d9722015-03-20 15:08:44 -070011 brew update
Davide Pesavento1eecc172017-06-24 14:30:42 -040012 if [[ -n $TRAVIS ]]; then
13 # travis images come with a large number of brew packages
14 # pre-installed, don't waste time upgrading all of them
15 for FORMULA in "${FORMULAE[@]}"; do
16 brew outdated $FORMULA || brew upgrade $FORMULA
17 done
18 else
19 brew upgrade
20 fi
21 brew install "${FORMULAE[@]}"
Junxiao Shi439d9722015-03-20 15:08:44 -070022 brew cleanup
23fi
24
25if has Ubuntu $NODE_LABELS; then
Davide Pesavento0e8edde2016-05-03 18:08:39 +020026 sudo apt-get -qq update
Davide Pesaventof085ed12017-06-30 14:59:52 -040027 sudo apt-get -qy install build-essential pkg-config libboost-all-dev \
Davide Pesavento07238e82017-08-26 13:21:57 -040028 libsqlite3-dev libssl-dev libpcap-dev
Davide Pesavento931dfe82017-04-29 20:33:45 -040029
30 if [[ $JOB_NAME == *"code-coverage" ]]; then
ashiqopu1f0cad72018-11-25 01:22:54 +000031 sudo apt-get -qy install gcovr lcov libgd-perl
Davide Pesavento931dfe82017-04-29 20:33:45 -040032 fi
Junxiao Shi439d9722015-03-20 15:08:44 -070033fi
Md Ashiqur Rahman25c37f12018-10-12 17:59:20 +000034
35if has CentOS $NODE_LABELS; then
36 sudo yum -y install yum-utils pkgconfig \
37 openssl-devel libtranslit-icu \
38 python-devel sqlite-devel \
39 libpcap-devel \
40 devtoolset-7-libasan-devel \
41 devtoolset-7-liblsan-devel
42 sudo yum -y groupinstall 'Development Tools'
43
44 svn checkout https://github.com/cmscaltech/sandie-ndn/trunk/packaging/RPMS/x86_64
45 sudo rpm -U --force x86_64/boost-license*
46 sudo rpm -U --force x86_64/boost-doc-html*
47 sudo rpm -U --force x86_64/libboost*
48 sudo rpm -U --force x86_64/boost-devel*
49fi