mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 12:12:47 +00:00
Merge pull request #249 from stevekuznetsov/skuznets/reconfigure-test-os
Add CentOS 7 and Fedora 25 tests, remove Fedora 21 tests
This commit is contained in:
commit
77c7ff9a91
5 changed files with 71 additions and 40 deletions
|
@ -64,12 +64,13 @@
|
|||
|
||||
distros='
|
||||
titotest-centos-6
|
||||
titotest-fedora-21
|
||||
titotest-centos-7
|
||||
titotest-fedora-25
|
||||
titotest-fedora-rawhide
|
||||
'
|
||||
|
||||
python3_distros='
|
||||
titotest-fedora-21
|
||||
titotest-fedora-25
|
||||
titotest-fedora-rawhide
|
||||
'
|
||||
|
||||
|
|
38
hacking/titotest-centos-7/Dockerfile
Normal file
38
hacking/titotest-centos-7/Dockerfile
Normal file
|
@ -0,0 +1,38 @@
|
|||
FROM centos:7
|
||||
MAINTAINER Steve Kuznetsov <skuznets@redhat.com>
|
||||
|
||||
RUN yum -y install epel-release
|
||||
RUN yum -y install \
|
||||
git \
|
||||
git-annex \
|
||||
python-bugzilla \
|
||||
python-mock \
|
||||
python-nose \
|
||||
python-pep8 \
|
||||
rpm-build \
|
||||
createrepo \
|
||||
tar \
|
||||
python-devel \
|
||||
which \
|
||||
asciidoc \
|
||||
docbook-style-xsl \
|
||||
libxslt \
|
||||
rpmdevtools \
|
||||
python-blessings \
|
||||
&& yum clean all
|
||||
|
||||
RUN useradd sandbox
|
||||
RUN git config --system user.email "sandbox@example.com"
|
||||
RUN git config --system user.name "sandbox"
|
||||
ADD tito.spec /tmp/tito.spec
|
||||
RUN yum -y install yum-utils \
|
||||
&& yum-builddep -y /tmp/tito.spec \
|
||||
&& yum clean all
|
||||
|
||||
USER sandbox
|
||||
VOLUME ["/home/sandbox"]
|
||||
WORKDIR /home/sandbox
|
||||
|
||||
|
||||
ENV LANG C
|
||||
CMD ["/bin/bash"]
|
|
@ -1,37 +0,0 @@
|
|||
# https://index.docker.io/_/fedora/
|
||||
FROM fedora:21
|
||||
|
||||
# http://jumanjiman.github.io/
|
||||
MAINTAINER Paul Morgan <jumanjiman@gmail.com>
|
||||
|
||||
# Install build dependencies.
|
||||
RUN yum -y install \
|
||||
yum-utils \
|
||||
git-annex \
|
||||
python-devel \
|
||||
python-mock \
|
||||
python-nose \
|
||||
python-blessings \
|
||||
python-pep8 \
|
||||
python3-mock \
|
||||
python3-nose \
|
||||
python3-blessings \
|
||||
python3-pep8
|
||||
|
||||
RUN useradd sandbox
|
||||
RUN git config --system user.email "sandbox@example.com"
|
||||
RUN git config --system user.name "sandbox"
|
||||
|
||||
# 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
|
||||
|
||||
RUN yum-builddep -y /tmp/tito.spec
|
||||
RUN yum clean all
|
||||
|
||||
USER sandbox
|
||||
VOLUME ["/home/sandbox"]
|
||||
WORKDIR /home/sandbox
|
||||
|
||||
ENV LANG C
|
||||
CMD ["/bin/bash"]
|
|
@ -1 +0,0 @@
|
|||
../../HACKING
|
30
hacking/titotest-fedora-25/Dockerfile
Normal file
30
hacking/titotest-fedora-25/Dockerfile
Normal file
|
@ -0,0 +1,30 @@
|
|||
FROM fedora:25
|
||||
MAINTAINER Steve Kuznetsov <skuznets@redhat.com>
|
||||
|
||||
RUN dnf -y install \
|
||||
yum-utils \
|
||||
git-annex \
|
||||
python2 \
|
||||
python-devel \
|
||||
python-mock \
|
||||
python-nose \
|
||||
python-blessings \
|
||||
python-pep8 \
|
||||
python3-mock \
|
||||
python3-nose \
|
||||
python3-blessings \
|
||||
python3-pep8
|
||||
|
||||
RUN useradd sandbox
|
||||
RUN git config --system user.email "sandbox@example.com"
|
||||
RUN git config --system user.name "sandbox"
|
||||
ADD tito.spec /tmp/tito.spec
|
||||
RUN yum-builddep -y /tmp/tito.spec
|
||||
RUN dnf clean all
|
||||
|
||||
USER sandbox
|
||||
VOLUME ["/home/sandbox"]
|
||||
WORKDIR /home/sandbox
|
||||
|
||||
ENV LANG C
|
||||
CMD ["/bin/bash"]
|
Loading…
Add table
Reference in a new issue