| JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| if has OSX $NODE_LABELS; then |
| FORMULAE=(boost openssl pkg-config) |
| if [[ -n $TRAVIS ]]; then |
| # travis images come with a large number of brew packages |
| # pre-installed, don't waste time upgrading all of them |
| for FORMULA in "${FORMULAE[@]}"; do |
| brew outdated $FORMULA || brew upgrade $FORMULA |
| brew install "${FORMULAE[@]}" |
| if has Ubuntu $NODE_LABELS; then |
| sudo apt-get -qy install build-essential pkg-config libboost-all-dev \ |
| libsqlite3-dev libssl-dev |
| if [[ $JOB_NAME == *"code-coverage" ]]; then |
| sudo apt-get -qy install lcov libgd-perl python-setuptools |
| sudo easy_install --upgrade gcovr |