summaryrefslogtreecommitdiff
path: root/contrib/ci
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-06-07 18:32:04 +0100
committerRichard Hughes <richard@hughsie.com>2017-06-07 18:32:04 +0100
commit6454fde1203ea81b409105007e064d14e3e3481d (patch)
treef4f895eacc4a83f69ab10f510e7ab71a5e03d977 /contrib/ci
parentb5b4a855acb5c0a5b64e12d3a280309117fb7864 (diff)
downloadappstream-glib-6454fde1203ea81b409105007e064d14e3e3481d.tar.gz
Enable Travis CI for Fedora 26 and Debian Stretch
Diffstat (limited to 'contrib/ci')
-rw-r--r--contrib/ci/Dockerfile-debian7
-rw-r--r--contrib/ci/Dockerfile-fedora8
-rwxr-xr-xcontrib/ci/build_and_test.sh6
3 files changed, 21 insertions, 0 deletions
diff --git a/contrib/ci/Dockerfile-debian b/contrib/ci/Dockerfile-debian
new file mode 100644
index 0000000..04fbbf8
--- /dev/null
+++ b/contrib/ci/Dockerfile-debian
@@ -0,0 +1,7 @@
+FROM debian:stretch
+
+RUN echo "deb-src http://deb.debian.org/debian/ stretch main" >> /etc/apt/sources.list
+RUN apt-get update -qq
+RUN apt-get build-dep -yq appstream-glib
+RUN mkdir /build
+WORKDIR /build
diff --git a/contrib/ci/Dockerfile-fedora b/contrib/ci/Dockerfile-fedora
new file mode 100644
index 0000000..a78b5f1
--- /dev/null
+++ b/contrib/ci/Dockerfile-fedora
@@ -0,0 +1,8 @@
+FROM fedora:25
+
+RUN dnf -y update
+RUN dnf -y install dnf-plugins-core redhat-rpm-config
+RUN dnf -y builddep libappstream-glib
+
+RUN mkdir /build
+WORKDIR /build
diff --git a/contrib/ci/build_and_test.sh b/contrib/ci/build_and_test.sh
new file mode 100755
index 0000000..b9ea2e7
--- /dev/null
+++ b/contrib/ci/build_and_test.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+
+meson .. $@
+ninja
+ninja install DEST=/tmp/install_root/