Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/pulseaudio-module-xrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetalefty <meta@vmeta.jp>2018-08-22 02:56:45 +0300
committerGitHub <noreply@github.com>2018-08-22 02:56:45 +0300
commit792642c51ea2d2d7a1edb51ee48044637096fa53 (patch)
tree9e10078ae67fb6b26d2b4dbedf2403b658aadf0f
parent67a0b516d9fb5902d270f80cbc9267b9e7938594 (diff)
parent08b8d6b136bb5a0cc975dd555ae435663c58c7b3 (diff)
Merge pull request #11 from metalefty/travis
introduce travis build test
-rw-r--r--.travis.centos.sh21
-rw-r--r--.travis.ubuntu.sh22
-rw-r--r--.travis.yml18
-rw-r--r--README.md2
4 files changed, 63 insertions, 0 deletions
diff --git a/.travis.centos.sh b/.travis.centos.sh
new file mode 100644
index 0000000..66be77b
--- /dev/null
+++ b/.travis.centos.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+
+SRC_DIR=${PWD}
+
+cd /tmp
+yum install -y epel-release
+yum install -y xrdp xrdp-devel xrdp-selinux wget
+yum install -y pulseaudio pulseaudio-libs pulseaudio-libs-devel
+yum-builddep -y pulseaudio
+yum groupinstall -y "Development Tools"
+
+PULSE_VER=$(pkg-config --modversion libpulse)
+
+# not to make traffic on upstream server
+wget http://distcache.freebsd.org/ports-distfiles/pulseaudio-${PULSE_VER}.tar.xz
+tar xf pulseaudio-${PULSE_VER}.tar.xz
+cd pulseaudio-${PULSE_VER}
+./configure || exit 1
+
+cd ${SRC_DIR}
+./bootstrap && ./configure PULSE_DIR=/tmp/pulseaudio-${PULSE_VER} && make
diff --git a/.travis.ubuntu.sh b/.travis.ubuntu.sh
new file mode 100644
index 0000000..2921f1e
--- /dev/null
+++ b/.travis.ubuntu.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+
+SRC_DIR=${PWD}
+
+cd /tmp
+sed -i.bak -e 's|^# deb-src|deb-src|' /etc/apt/sources.list
+
+apt update
+apt install -y build-essential dpkg-dev libpulse-dev pulseaudio pkg-config xrdp
+apt install -y g++ clang
+
+apt install -y pulseaudio
+apt build-dep -y pulseaudio
+apt source pulseaudio
+
+PULSE_VER=$(pkg-config --modversion libpulse)
+
+cd pulseaudio-${PULSE_VER}
+./configure || exit 1
+
+cd ${SRC_DIR}
+./bootstrap && ./configure PULSE_DIR=/tmp/pulseaudio-${PULSE_VER} && make
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..a4bc89a
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,18 @@
+# vim:ts=2:sw=2:sts=0:number:expandtab
+language: c
+
+env:
+ matrix:
+ - OS_TYPE=ubuntu OS_VERSION=18.04 BRANCH=devel
+ - OS_TYPE=ubuntu OS_VERSION=18.04 BRANCH=master
+ - OS_TYPE=centos OS_VERSION=7 BRANCH=devel
+ - OS_TYPE=centos OS_VERSION=7 BRANCH=master
+
+services:
+ - docker
+
+before_install:
+ - docker pull ${OS_TYPE}:${OS_VERSION}
+
+script:
+ - docker run --rm --interactive --tty --volume=${PWD}:${PWD} ${OS_TYPE}:${OS_VERSION} bash -c "cd ${PWD} && bash .travis.${OS_TYPE}.sh"
diff --git a/README.md b/README.md
index 34a994f..b743201 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+[![Build Status](https://travis-ci.org/neutrinolabs/pulseaudio-module-xrdp.svg?branch=travis)](https://travis-ci.org/neutrinolabs/pulseaudio-module-xrdp)
+
The latest version of this document can be found at wiki.
* https://github.com/neutrinolabs/pulseaudio-module-xrdp/wiki/README