blob: d3709b5e8b8bbc76f4b3849ef9652a909aee6ac6 [file] [log] [blame]
Alexander Afanasyevdf26b5a2015-01-15 23:30:56 -08001#!/usr/bin/env bash
Alexander Afanasyevdf26b5a2015-01-15 23:30:56 -08002set -e
3
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -07004JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5source "$JDIR"/util.sh
Alexander Afanasyevdf26b5a2015-01-15 23:30:56 -08006
Alexander Afanasyeve0ab3f92016-10-20 13:29:39 -07007set -x
8
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -07009if has OSX $NODE_LABELS; then
Alexander Afanasyev49ecab22020-05-31 00:03:17 -040010 FORMULAE=(boost pkg-config libxml2)
11 if [[ -n $USE_OPENSSL_1_1 ]]; then
12 FORMULAE+=(openssl@1.1)
13 else
14 FORMULAE+=(openssl)
15 fi
16
Alexander Afanasyevdf26b5a2015-01-15 23:30:56 -080017 brew update
Alexander Afanasyev49ecab22020-05-31 00:03:17 -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 Afanasyevdf26b5a2015-01-15 23:30:56 -080028 brew cleanup
29fi
30
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -070031if has Ubuntu $NODE_LABELS; then
Alexander Afanasyeve0ab3f92016-10-20 13:29:39 -070032 sudo apt-get -qq update
Alexander Afanasyev49ecab22020-05-31 00:03:17 -040033 sudo apt-get -qy install build-essential pkg-config libboost-all-dev \
34 libsqlite3-dev libssl-dev
35
36 if [[ $JOB_NAME == *"code-coverage" ]]; then
37 sudo apt-get -qy install gcovr lcov libgd-perl
38 fi
39fi
40
41if has Ubuntu-16.04 $NODE_LABELS; then
42 sudo apt-get -qy install python-setuptools python-dev python-pygraphviz castxml \
43 python-kiwi python-gnome2 ipython libcairo2-dev python3-gi \
44 libgirepository1.0-dev python-gi python-gi-cairo \
45 gir1.2-gtk-3.0 gir1.2-goocanvas-2.0 python-pip
46 sudo pip install pygraphviz pycairo PyGObject pygccxml
47elif has Ubuntu $NODE_LABELS; then
48 sudo apt-get -qy install build-essential libsqlite3-dev libboost-all-dev libssl-dev \
49 git python3-setuptools castxml \
50 gir1.2-goocanvas-2.0 gir1.2-gtk-3.0 libgirepository1.0-dev \
51 python3-dev python3-gi python3-gi-cairo \
52 python3-pip python3-pygraphviz python3-pygccxml
53 sudo pip3 install kiwi
Alexander Afanasyevdf26b5a2015-01-15 23:30:56 -080054fi