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

# 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 -qq python-selinux python-pylibacl yum
    fi
fi