[PATCH] Add a .travis.yml for Travis CI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
---
 .travis.yml | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)
 create mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..7999ac7
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,62 @@
+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:
+  # Systemd-dev is not installable yet in ubuntu trusty
+  - >
+    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
+    libjson0-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
+
+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-discuss at lists.freedesktop.org
-- 
2.1.4



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux