summaryrefslogtreecommitdiff
path: root/tools/travis-ci-setup.sh
blob: a28d05062abb87736da2e0ea44ec2ac595fb4796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/sh

set -e
set -u
NULL=

sudo apt-get -qq -y update
sudo apt-get -qq -y install \
    autoconf \
    automake \
    ccache \
    dbus \
    gnome-desktop-testing \
    libdbus-1-dev \
    libtool \
    ${NULL}

if [ -n "${dbus_ci_system_python-}" ]; then
      sudo apt-get -qq -y install \
        ${dbus_ci_system_python} \
        ${dbus_ci_system_python%-dbg}-docutils \
        ${dbus_ci_system_python%-dbg}-gi \
        ${dbus_ci_system_python%-dbg}-pip \
        ${dbus_ci_system_python%-dbg}-setuptools \
        ${NULL}

    if [ "${dbus_ci_system_python%-dbg}" != "${dbus_ci_system_python}" ]; then
        sudo apt-get -qq -y install ${dbus_ci_system_python%-dbg}-gi-dbg
    fi

    if [ "$dbus_ci_system_python" = python ]; then
        sudo apt-get -qq -y install python-gobject-2
    fi
fi

wget \
http://deb.debian.org/debian/pool/main/a/autoconf-archive/autoconf-archive_20160916-1_all.deb
sudo dpkg -i autoconf-archive_*_all.deb
rm autoconf-archive_*_all.deb

if [ -n "${dbus_ci_system_python-}" ]; then
    "$dbus_ci_system_python" -m pip install --user \
        sphinx \
        sphinx_rtd_theme \
        tap.py \
        ${NULL}
else
    pip install \
        sphinx \
        sphinx_rtd_theme \
        tap.py \
        ${NULL}
fi