blob: beb269305dcae24d5242b854ae53e9b8172d83c3 [file] [log] [blame]
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -04001#!/usr/bin/env bash
2set -e
3
4JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5source "$JDIR"/util.sh
6
Davide Pesavento09348882016-09-17 02:39:44 +02007set -x
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -04008
Davide Pesavento09348882016-09-17 02:39:44 +02009if has OSX $NODE_LABELS; then
Davide Pesavento9412d122018-01-02 21:52:09 -050010 FORMULAE=(boost pkg-config)
11 if [[ -n $USE_OPENSSL_1_1 ]]; then
12 FORMULAE+=(openssl@1.1)
13 else
14 FORMULAE+=(openssl)
15 fi
16
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -040017 brew update
Davide Pesaventob1a2a4b2017-06-08 19:37:21 -040018 if [[ -n $TRAVIS ]]; then
19 # travis images come with a large number of brew packages
20 # pre-installed, don't waste time upgrading all of them
21 for FORMULA in "${FORMULAE[@]}"; do
22 brew outdated $FORMULA || brew upgrade $FORMULA
23 done
24 else
25 brew upgrade
26 fi
27 brew install "${FORMULAE[@]}"
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -040028 brew cleanup
29fi
30
31if has Ubuntu $NODE_LABELS; then
Davide Pesaventoe11c8d82016-04-16 14:32:07 +020032 sudo apt-get -qq update
Davide Pesavento71430482017-06-08 20:06:40 -040033 sudo apt-get -qy install build-essential pkg-config libboost-all-dev \
Davide Pesavento006b7ce2017-08-16 00:55:02 -040034 libsqlite3-dev libssl-dev
Davide Pesaventoc44cc832017-04-03 22:11:48 -040035
36 if [[ $JOB_NAME == *"code-coverage" ]]; then
Davide Pesaventocf8a3682018-11-24 19:52:21 -050037 sudo apt-get -qy install gcovr lcov libgd-perl
Davide Pesaventoc44cc832017-04-03 22:11:48 -040038 fi
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -040039fi
Md Ashiqur Rahman8bd3b8a2018-09-01 23:43:51 +000040
41if has CentOS $NODE_LABELS; then
42 sudo yum -y install yum-utils pkgconfig \
43 openssl-devel libtranslit-icu \
44 python-devel sqlite-devel \
45 devtoolset-7-libasan-devel \
46 devtoolset-7-liblsan-devel
47 sudo yum -y groupinstall 'Development Tools'
48
49 svn checkout https://github.com/cmscaltech/sandie-ndn/trunk/packaging/RPMS/x86_64
50 sudo rpm -U --force x86_64/boost-license*
51 sudo rpm -U --force x86_64/boost-doc-html*
52 sudo rpm -U --force x86_64/libboost*
53 sudo rpm -U --force x86_64/boost-devel*
54fi