[pulseaudio-discuss] [PATCH] Add a .travis.yml for Travis CI

Felipe Sateler fsateler at debian.org
Wed Apr 29 17:22:56 PDT 2015


Installs all the build dependencies, and runs make check and
check-daemon.

V1: Based on Arun Raghavan's travis file. Added trusty repositories to get
newer libs.

V2: Explicitly list all dependencies instead of relying on the Ubuntu
package Build-Dependencies. Send notifications to pulseaudio-discuss

V3: Install libsystemd-daemon-dev, libsystemd-id128-dev,
libsystemd-journal-dev, and libsystemd-login-dev. Send notifications to
pulseaudio-commits. Drop libjson0-dev, libjson-c-dev is the package to
depend on.
---

 The change to p-commits means that the travis bot should be whitelisted. The
 mail is builds at travis-ci.org

 .travis.yml | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)
 create mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..0bf77d5
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,64 @@
+language: c
+
+compiler:
+  - gcc
+ #- clang
+
+before_install:
+  - sudo sh -c 'echo "deb http://archive.ubuntu.com/ubuntu/ trusty main universe\ndeb-src http://archive.ubuntu.com/ubuntu/ trusty main universe" >> /etc/apt/sources.list'
+  - sudo apt-get -qq update
+install:
+  - >
+    sudo apt-get -qq install
+    git-core
+    autopoint
+    autoconf
+    automake
+    intltool
+    check
+    libasound2-dev
+    libasyncns-dev
+    libatomic-ops-dev
+    libavahi-client-dev
+    libbluetooth-dev
+    libsbc-dev
+    libcap-dev
+    libfftw3-dev
+    libgconf2-dev
+    libglib2.0-dev
+    libgtk-3-dev
+    libice-dev
+    libjack-dev
+    libjson-c-dev
+    liblircclient-dev
+    libltdl-dev
+    liborc-0.4-dev
+    libsamplerate0-dev
+    libsndfile1-dev
+    libspeexdsp-dev
+    libssl-dev
+    libtdb-dev
+    libudev-dev
+    libwebrtc-audio-processing-dev
+    libwrap0-dev
+    libx11-xcb-dev
+    libxcb1-dev
+    libxtst-dev
+    libsystemd-daemon-dev
+    libsystemd-id128-dev
+    libsystemd-journal-dev
+    libsystemd-login-dev
+
+before_script:
+  # can't run git-version-gen on a shallow clone or without tags
+  - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
+  - git fetch --tags
+  - NOCONFIGURE=1 ./bootstrap.sh
+
+script:
+  - ./configure --localstatedir=/var && make && make check && make check-daemon
+
+notifications:
+  email:
+    recipients:
+      - pulseaudio-commits at lists.freedesktop.org
-- 
2.1.4



More information about the pulseaudio-discuss mailing list