travis-ci: add an explicit copyright/license statement
[platform/upstream/dbus.git] / .travis.yml
1 # Copyright © 2015-2016 Collabora Ltd.
2 #
3 # Permission is hereby granted, free of charge, to any person
4 # obtaining a copy of this software and associated documentation files
5 # (the "Software"), to deal in the Software without restriction,
6 # including without limitation the rights to use, copy, modify, merge,
7 # publish, distribute, sublicense, and/or sell copies of the Software,
8 # and to permit persons to whom the Software is furnished to do so,
9 # subject to the following conditions:
10 #
11 # The above copyright notice and this permission notice shall be
12 # included in all copies or substantial portions of the Software.
13 #
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
18 # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19 # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 # SOFTWARE.
22
23 sudo: required
24 dist: trusty
25 language: c
26 install:
27   # travis-ci has a sources list for Chrome which doesn't support i386
28   - ": | sudo tee /etc/apt/sources.list.d/google-chrome.list"
29   - test "$dbus_ci_host" != mingw || sudo dpkg --add-architecture i386
30   - sudo apt-get -qq -y update
31   - >
32     test "$dbus_ci_host" != mingw || sudo apt-get -qq -y install
33     binutils-mingw-w64-i686 g++-mingw-w64-i686 wine:i386
34   - sudo apt-get -qq -y build-dep dbus
35   - >
36     sudo apt-get -qq -y install
37     automake
38     autotools-dev
39     debhelper
40     dh-autoreconf
41     doxygen
42     dpkg-dev
43     gnome-desktop-testing
44     libapparmor-dev
45     libaudit-dev
46     libcap-ng-dev
47     libexpat-dev
48     libglib2.0-dev
49     libselinux1-dev
50     libx11-dev
51     python
52     python-dbus
53     python-gi
54     valgrind
55     xauth
56     xmlto
57     xsltproc
58     xvfb
59   # Ubuntu 14.04's autoconf-archive is too old
60   - >
61     wget
62     http://snapshot.debian.org/archive/debian/20160905T163745Z/pool/main/a/autoconf-archive/autoconf-archive_20160320-1_all.deb
63   - 'sudo dpkg -i autoconf-archive_*_all.deb'
64   - 'rm autoconf-archive_*_all.deb'
65 script:
66   # python-dbus and python-gi aren't available to Travis's version of
67   # Python in /opt, which it uses as a default
68   - PYTHON=/usr/bin/python dbus_ci_parallel=2 dbus_ci_sudo=yes ./tools/ci-build.sh
69
70 env:
71   - dbus_ci_variant=production
72   - dbus_ci_variant=debug
73   - dbus_ci_variant=reduced
74   - dbus_ci_variant=legacy
75   - dbus_ci_buildsys=cmake
76   - dbus_ci_host=mingw
77   - dbus_ci_host=mingw dbus_ci_variant=debug
78   - dbus_ci_host=mingw dbus_ci_buildsys=cmake
79
80 # vim:set sw=2 sts=2 et: