diff options
author | Aleix Pol <aleixpol@kde.org> | 2017-03-14 19:05:17 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-03-24 11:44:01 +0000 |
commit | e5640dc9ff836c870a9ad83b946b7094688c5287 (patch) | |
tree | 084d0cdeb002072517db70cc694314fe63d88ea0 /tests | |
parent | 36d376f6c1bb217f0279ca33fcabc7189144cc8f (diff) |
First approach to a CI
Compiles the project on debian stretch and fedora
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ci/Dockerfile-debian | 7 | ||||
-rw-r--r-- | tests/ci/Dockerfile-fedora | 8 | ||||
-rwxr-xr-x | tests/ci/build_and_test.sh | 8 |
3 files changed, 23 insertions, 0 deletions
diff --git a/tests/ci/Dockerfile-debian b/tests/ci/Dockerfile-debian new file mode 100644 index 000000000..1d801dba3 --- /dev/null +++ b/tests/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 packagekit +RUN mkdir /build +WORKDIR /build diff --git a/tests/ci/Dockerfile-fedora b/tests/ci/Dockerfile-fedora new file mode 100644 index 000000000..a0fa3b862 --- /dev/null +++ b/tests/ci/Dockerfile-fedora @@ -0,0 +1,8 @@ +FROM fedora:25 + +RUN dnf -y update +RUN dnf -y install dnf-plugins-core libdnf-devel redhat-rpm-config autoconf-archive +RUN dnf -y builddep PackageKit + +RUN mkdir /build +WORKDIR /build diff --git a/tests/ci/build_and_test.sh b/tests/ci/build_and_test.sh new file mode 100755 index 000000000..41b200adc --- /dev/null +++ b/tests/ci/build_and_test.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -e + +./autogen.sh $@ + +# Build, Test & Install +make +make install DEST=/tmp/install_root/ |