redhat-ci: use dedicated build container image

Make a dedicated container image for building rpm-ostree so that we save
time and bandwidth on building in all the testsuites. Simplify the new
compose test.

Closes: #537
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2016-12-06 14:45:49 -05:00 committed by Atomic Bot
parent b81c0cdfda
commit 56aa6644cf
2 changed files with 39 additions and 23 deletions

18
.redhat-ci.Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM fedora:25
# We could use the upstream spec file here, but anyway for
# runtime reqs, we're at the mercy of whatever in the
# updates repo.
RUN dnf install -y @buildsys-build && \
dnf install -y 'dnf-command(builddep)' && \
dnf builddep -y rpm-ostree && \
dnf install -y rpm-ostree && \
rpm -e rpm-ostree
# These are test-only reqs
RUN dnf install -y \
createrepo_c \
clang \
libubsan

View File

@ -5,8 +5,10 @@ branches:
context: check
required: true
container:
image: projectatomic/ostree-tester
image: projectatomic/rpm-ostree-tester
env:
CFLAGS: '-fsanitize=undefined'
@ -18,24 +20,6 @@ build:
--enable-installed-tests
--enable-gtk-doc
packages:
- python-sphinx
- createrepo_c
- gperf
- rpm-build
- bubblewrap
- python-devel
- check-devel
- pkgconfig(ostree-1)
- pkgconfig(libgsystem)
- pkgconfig(librepo)
- pkgconfig(libsolv)
- pkgconfig(rpm)
- pkgconfig(json-glib-1.0)
- pkgconfig(expat)
- cmake
- gtk-doc
tests:
- make check
- gnome-desktop-testing-runner rpm-ostree
@ -45,6 +29,7 @@ timeout: 30m
artifacts:
- test-suite.log
- config.log
---
@ -52,6 +37,8 @@ inherit: true
context: Clang
required: true
env:
CC: 'clang'
CFLAGS: '-Werror=unused-variable'
@ -65,12 +52,14 @@ inherit: true
context: vmcheck
required: true
cluster:
hosts:
- name: vmcheck
distro: fedora/24/atomic
distro: fedora/25/atomic
container:
image: projectatomic/ostree-tester
image: projectatomic/rpm-ostree-tester
tests:
- cp .redhat-ci.ssh-config ssh-config
@ -80,6 +69,7 @@ artifacts:
- vmcheck.log
---
context: compose
build: false
timeout: 30m
@ -91,5 +81,13 @@ host:
distro: centos/7/atomic/alpha
tests:
# Yes, we're duplicating the build dependencies *again*! Woo!
- docker run --privileged -v $(pwd):/srv/code --rm projectatomic/ostree-tester /bin/sh -c 'yum -y install python-sphinx createrepo_c gperf rpm-build bubblewrap python-devel check-devel "pkgconfig(ostree-1)" "pkgconfig(libgsystem)" "pkgconfig(librepo)" "pkgconfig(libsolv)" "pkgconfig(rpm)" "pkgconfig(json-glib-1.0)" "pkgconfig(expat)" cmake gtk-doc && cd /srv/code && env NOCONFIGURE=1 ./autogen.sh && ./configure --prefix=/usr --libdir=/usr/lib64 && make && make install && ./tests/compose'
- >
docker run --privileged -v $(pwd):/srv/code --rm
projectatomic/rpm-ostree-tester /bin/sh -c "
cd /srv/code &&
env NOCONFIGURE=1 ./autogen.sh &&
./configure --prefix=/usr --libdir=/usr/lib64 &&
make &&
make install &&
./tests/compose
"