From d017730cd2eb7eeb219e7fb975cce7c7c377b195 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 27 Jan 2017 00:32:24 +0100 Subject: [PATCH] Add Travis CI configuration --- .travis.yml | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 69 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..63756f7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,67 @@ +sudo: false +dist: trusty +language: cpp + +compiler: gcc + +matrix: + include: + - addons: + apt: + packages: + - libssl-dev + - libprotobuf-dev + - libprotoc-dev + - protobuf-compiler + - libconfig-dev + env: + TLSIMPL=openssl + - addons: + apt: + packages: + - libprotobuf-dev + - libprotoc-dev + - protobuf-compiler + - libconfig-dev + env: + TLSIMPL=mbedtls MBEDVERSION=2.3.0 + - addons: + apt: + packages: + - libprotobuf-dev + - libprotoc-dev + - protobuf-compiler + - libconfig-dev + env: + TLSIMPL=mbedtls MBEDVERSION=2.4.0 + exclude: + - compiler: gcc + +install: + - if [ "$TLSIMPL" == "mbedtls" ]; then + pushd .; + cd /tmp; + wget https://github.com/ARMmbed/mbedtls/archive/mbedtls-${MBEDVERSION}.tar.gz; + tar xf mbedtls-${MBEDVERSION}.tar.gz; + cd mbedtls-mbedtls-${MBEDVERSION}; + cmake . -DCMAKE_INSTALL_PREFIX=/tmp/deps -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=Off -DUSE_SHARED_MBEDTLS_LIBRARY=On; + make install -j$(nproc); + if [ "$MBEDVERSION" == "2.3.0" ]; then + sed -e 's//"platform.h"/g' -i /tmp/deps/include/mbedtls/ssl.h; + fi; + popd; + fi + - pushd .; + cd /tmp; + wget https://github.com/protobuf-c/protobuf-c/releases/download/v1.0.0/protobuf-c-1.0.0.tar.gz; + tar xf protobuf-c-1.0.0.tar.gz; + cd protobuf-c-1.0.0/; + ./configure --prefix=/tmp/deps; + make -j$(nproc); + make install; + popd + +script: + - ./autogen.sh + - env CPPFLAGS=-I/tmp/deps/include LDFLAGS=-L/tmp/deps/lib ./configure --with-ssl=${TLSIMPL} + - make -j$(nproc) diff --git a/README.md b/README.md index 4b34637..3fd5567 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ #About uMurmur +Build for OpenSSL and mbed TLS 2.3/2.4: [![Build Status](https://travis-ci.org/umurmur/umurmur.svg?branch=master)](https://travis-ci.org/umurmur/umurmur) + uMurmur is a minimalistic Mumble server primarily targeted to run on embedded computers, like routers, with an open OS like e.g. OpenWRT. The server part of Mumble is called Murmur, hence the name uMurmur. It is available as a precompiled package for quite a lot distributions. Check your distribution's package repository. Instructions for building from source -- 2.30.2