From a1d37dda1856eeff060ede7653fb6dae1affd605 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 16 Apr 2020 12:33:58 +0200 Subject: Add Fedora travis CI Regards https://github.com/profanity-im/profanity/issues/1314#issuecomment-614242435 --- .travis.yml | 2 ++ Dockerfile.fedora | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 6 ++--- 3 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 Dockerfile.fedora diff --git a/.travis.yml b/.travis.yml index a40b7432..71f450d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,8 @@ matrix: env: BUILD_FLAVOR=debian - os: linux env: BUILD_FLAVOR=arch + - os: linux + env: BUILD_FLAVOR=fedora - os: osx env: # Ensure that "keg-only" Homebrew versions are used. diff --git a/Dockerfile.fedora b/Dockerfile.fedora new file mode 100644 index 00000000..0307cd53 --- /dev/null +++ b/Dockerfile.fedora @@ -0,0 +1,66 @@ +# Build the latest Fedora image +FROM fedora:latest + +# expect - for functional tests +# libmicrohttpd - for stabber +# glibc-locale - to have en_US locale +RUN dnf install -y \ + autoconf \ + autoconf-archive \ + automake \ + expect-devel \ + gcc \ + git \ + glib2-devel \ + glibc-all-langpacks \ + gtk2-devel \ + libXScrnSaver-devel \ + libcmocka-devel \ + libcurl-devel \ + expat-devel \ + libgcrypt-devel \ + gpgme-devel \ + libmicrohttpd-devel \ + libnotify-devel \ + libotr-devel \ + libsignal-protocol-c-devel \ + libtool \ + libuuid-devel \ + make \ + ncurses-devel \ + python \ + python-devel \ + python3 \ + python3-devel \ + readline-devel \ + openssl-devel \ + sqlite-devel + +# https://github.com/openSUSE/docker-containers-build/issues/26 +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US:en +ENV LC_ALL en_US.UTF-8 + +RUN mkdir -p /usr/src +WORKDIR /usr/src + +RUN mkdir -p /usr/src/stabber +RUN git clone git://github.com/boothj5/stabber.git +WORKDIR /usr/src/stabber +RUN ./bootstrap.sh +RUN ./configure --prefix=/usr --disable-dependency-tracking +RUN make +RUN make install + +WORKDIR /usr/src +RUN mkdir -p /usr/src/libmesode +RUN git clone git://github.com/profanity-im/libmesode.git +WORKDIR /usr/src/libmesode +RUN ./bootstrap.sh +RUN ./configure --prefix=/usr +RUN make +RUN make install + +RUN mkdir -p /usr/src/profanity +WORKDIR /usr/src/profanity +COPY . /usr/src/profanity diff --git a/README.md b/README.md index e9ff51fc..fe94a59c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -Profanity -========= +# Profanity [![Build Status](https://api.travis-ci.org/profanity-im/profanity.png?branch=master)](https://travis-ci.org/profanity-im/profanity) [![builds.sr.ht status](https://builds.sr.ht/~wstrm/profanity.svg)](https://builds.sr.ht/~wstrm/profanity?) [![Chat](https://inverse.chat/badge.svg?room=profanity@rooms.dismail.de)](https://conversations.im/j/profanity@rooms.dismail.de) Profanity is a console based XMPP client inspired by [Irssi](http://www.irssi.org/). @@ -10,8 +9,7 @@ If you like Profanity consider becoming a sponsor or [donate](https://profanity- See the [User Guide](https://profanity-im.github.io/userguide.html) for information on installing and using Profanity. -Links ------ +## Links Homepage: https://profanity-im.github.io/ - https://github.com/profanity-im/profanity-im.github.io -- cgit 1.4.1-2-gfad0