Instead of starting from the minimal Ubuntu 18.04 base image and installing all requirements at build time, use a Docker image that has been specifically tailored at building libvirt and thus already includes all required packages. Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- The pre-built images have been hand-crafted using the build dependencies recorded in the libvirt-jenkins-ci repository: of course that's not something that we want to keep doing manually going forward, so figuring out a sensible way to generate Dockerfiles and potentially even Docker images automatically is pretty high on the priority list. .travis.yml | 75 ++--------------------------------------------------- 1 file changed, 2 insertions(+), 73 deletions(-) diff --git a/.travis.yml b/.travis.yml index f62e8c6437..1b0d1e824b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ matrix: - services: - docker env: - - IMAGE=ubuntu:18.04 + - IMAGE="ubuntu-18" - DISTCHECK_CONFIGURE_FLAGS="--with-init-script=systemd" - compiler: clang language: c @@ -22,13 +22,11 @@ matrix: script: - docker run - --privileged -v $(pwd):/build -w /build -e VIR_TEST_DEBUG="$VIR_TEST_DEBUG" - -e PACKAGES="$PACKAGES" -e DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS" - "$IMAGE" + "libvirt/build:$IMAGE" /bin/sh -xc "$LINUX_CMD" git: @@ -38,8 +36,6 @@ env: global: - VIR_TEST_DEBUG=1 - LINUX_CMD=" - apt-get update && - apt-get install -y \$PACKAGES && ./autogen.sh && make -j3 && make -j3 syntax-check && @@ -67,73 +63,6 @@ env: exit 1 ) " - # Please keep this list sorted alphabetically - - PACKAGES=" - augeas-tools - autoconf - automake - autopoint - bash-completion - ccache - dnsmasq-base - dwarves - ebtables - gcc - gettext - git - glusterfs-client - libacl1-dev - libapparmor-dev - libattr1-dev - libaudit-dev - libavahi-client-dev - libblkid-dev - libc6-dev - libcap-ng-dev - libc-dev-bin - libdbus-1-dev - libdevmapper-dev - libfuse-dev - libgnutls28-dev - libnetcf-dev - libnl-3-dev - libnl-route-3-dev - libnuma-dev - libopenwsman-dev - libparted-dev - libpcap-dev - libpciaccess-dev - librbd-dev - libreadline-dev - libsanlock-dev - libsasl2-dev - libselinux1-dev - libssh2-1-dev - libssh-dev - libtirpc-dev - libtool - libudev-dev - libxen-dev - libxml2-dev - libxml2-utils - libyajl-dev - lvm2 - make - nfs-common - open-iscsi - parted - patch - perl - pkgconf - policykit-1 - qemu-utils - radvd - scrub - sheepdog - systemtap-sdt-dev - xsltproc - zfs-fuse - " notifications: irc: -- 2.17.1 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list