summaryrefslogtreecommitdiffstats
path: root/testsuite/before_install.sh
blob: 2c80036cdfc4f3ac899b26f47c736a27bbebbe07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash -ex

# before_install script for Travis-CI

PYVER=$(python -c 'import sys;print(".".join(str(v) for v in sys.version_info[0:2]))')

sudo apt-get update -qq
sudo apt-get install -qq swig libxml2-utils
if [[ "$WITH_OPTIONAL_DEPS" == "yes" ]]; then
    if [[ ${PYVER:0:1} == "2" ]]; then
        sudo apt-get install -y yum libaugeas0 augeas-lenses libacl1-dev \
            libssl-dev
    fi
fi