add f19 to test harness to test conditional build deps

* fedora 19 does not have rpm-python3, thus we only test python2.
* assert that build deps are correct for fedora 19
This commit is contained in:
Paul Morgan 2014-05-31 17:03:07 +00:00
parent ea7404d6a5
commit 4aeab5dcc1
4 changed files with 29 additions and 1 deletions

View file

@ -62,6 +62,7 @@
distros='
titotest-centos-5.9
titotest-centos-6.4
titotest-fedora-19
titotest-fedora-20
'

View file

@ -0,0 +1,26 @@
# no f19 in semi-official https://index.docker.io/_/fedora/
# so use https://index.docker.io/u/mattdm/fedora/
FROM mattdm/fedora:f19
# http://jumanjiman.github.io/
MAINTAINER Paul Morgan <jumanjiman@gmail.com>
# NOTE: runtests.sh hard-links tito.spec into this directory on-the-fly
# to work around https://github.com/dotcloud/docker/issues/1676
ADD tito.spec /tmp/tito.spec
# Install build dependencies.
RUN yum -y install yum-utils \
; yum-builddep -y /tmp/tito.spec \
; yum clean all
RUN useradd sandbox
RUN git config --global user.email "sandbox@example.com"
RUN git config --global user.name "sandbox"
USER sandbox
VOLUME ["/home/sandbox"]
WORKDIR /home/sandbox
ENV LANG C
CMD ["/bin/bash"]

View file

@ -0,0 +1 @@
../../HACKING

View file

@ -23,7 +23,7 @@ BuildRequires: createrepo
BuildRequires: tar
BuildRequires: which
%if 0%{?fedora} >= 20
%if 0%{?fedora} >= 19
# todo: add %check to spec file in accordance with
# https://fedoraproject.org/wiki/QA/Testing_in_check
BuildRequires: git